Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
Last active May 27, 2024 03:52

Revisions

  1. stephenlauck renamed this gist Oct 17, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cwitch.sh → cwitch.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    ```
    export VM=dist-lunar-01 IMG=https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64.img OS=ubuntu22.04; curl https://spellcaster.sh/spells/cwitch | bash && ssh -t -i ./id_ed25519 -o StrictHostKeyChecking=no $USER@$(virsh domifaddr $VM | awk -F'[ /]+' '{if (NR>2) print $5}')
    ```
  2. stephenlauck revised this gist Oct 17, 2023. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions cwitch.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1 @@
    export VM=dist-lunar-01 IMG=https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64.img OS=ubuntu22.04; curl https://spellcaster.sh/spells/cwitch | bash && ssh -t -i ./id_ed25519 -o StrictHostKeyChecking=no
    (virsh domifaddr $VM | awk -F'[ /]+' '{if (NR>2) print $5}')
    export VM=dist-lunar-01 IMG=https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64.img OS=ubuntu22.04; curl https://spellcaster.sh/spells/cwitch | bash && ssh -t -i ./id_ed25519 -o StrictHostKeyChecking=no $USER@$(virsh domifaddr $VM | awk -F'[ /]+' '{if (NR>2) print $5}')
  3. stephenlauck created this gist Oct 17, 2023.
    2 changes: 2 additions & 0 deletions cwitch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    export VM=dist-lunar-01 IMG=https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64.img OS=ubuntu22.04; curl https://spellcaster.sh/spells/cwitch | bash && ssh -t -i ./id_ed25519 -o StrictHostKeyChecking=no
    (virsh domifaddr $VM | awk -F'[ /]+' '{if (NR>2) print $5}')