Skip to content

Instantly share code, notes, and snippets.

@dreadwarrior
Last active September 17, 2015 20:43
Show Gist options
  • Save dreadwarrior/2c9b9743696049b57de9 to your computer and use it in GitHub Desktop.
Save dreadwarrior/2c9b9743696049b57de9 to your computer and use it in GitHub Desktop.
bash_aliases
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"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment