Skip to content

Instantly share code, notes, and snippets.

@dreadwarrior
Last active September 17, 2015 20:43
Show Gist options
  • Select an option

  • Save dreadwarrior/2c9b9743696049b57de9 to your computer and use it in GitHub Desktop.

Select an option

Save dreadwarrior/2c9b9743696049b57de9 to your computer and use it in GitHub Desktop.

Revisions

  1. dreadwarrior revised this gist Sep 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bash_aliases
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    alias g10psn='glances --time 10 --process-short-name'
    #alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualbox/id) | grep ^NIC | grep 'host port'"
    alias vmpm="vname=`vagrant status | awk 'NR==3 {print $1}'`; vid=`cat .vagrant/machines/$vname/virtualbox/id`; VBoxManage showvminfo $vid | grep '^NIC.*host port'"
    alias vmpm='vname=`vagrant status | awk "NR==3 {print \\$1}"`; vid=`cat .vagrant/machines/\$vname/virtualbox/id`; VBoxManage showvminfo $vid | grep "^NIC.*host port"'
  2. dreadwarrior revised this gist Sep 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bash_aliases
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    alias g10psn='glances --time 10 --process-short-name'
    #alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualbox/id) | grep ^NIC | grep 'host port'"
    alias vmpm="vmname=`vagrant status | awk 'NR==3 {print $1}'`; vmid=`cat .vagrant/machines/$vmname/virtualbox/id`; VBoxManage showvminfo $vmid | grep '^NIC.*host port'"
    alias vmpm="vname=`vagrant status | awk 'NR==3 {print $1}'`; vid=`cat .vagrant/machines/$vname/virtualbox/id`; VBoxManage showvminfo $vid | grep '^NIC.*host port'"
  3. dreadwarrior revised this gist Sep 17, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion bash_aliases
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    alias g10psn='glances --time 10 --process-short-name'
    alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualbox/id) | grep ^NIC | grep 'host port'"
    #alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualbox/id) | grep ^NIC | grep 'host port'"
    alias vmpm="vmname=`vagrant status | awk 'NR==3 {print $1}'`; vmid=`cat .vagrant/machines/$vmname/virtualbox/id`; VBoxManage showvminfo $vmid | grep '^NIC.*host port'"
  4. dreadwarrior revised this gist Sep 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bash_aliases
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    alias g10psn='glances --time 10 --process-short-name'
    alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualb ox/id) | grep ^NIC | grep 'host port'"
    alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualbox/id) | grep ^NIC | grep 'host port'"
  5. dreadwarrior created this gist Sep 17, 2015.
    2 changes: 2 additions & 0 deletions bash_aliases
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    alias g10psn='glances --time 10 --process-short-name'
    alias vmpm="VBoxManage showvminfo $(cat .vagrant/machines/$(vagrant status | sed -n 3p | awk '{print $1}')/virtualb ox/id) | grep ^NIC | grep 'host port'"