Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Last active August 29, 2015 14:16
Show Gist options
  • Save t-cyrill/96df1ac7487fe83a0fd0 to your computer and use it in GitHub Desktop.
Save t-cyrill/96df1ac7487fe83a0fd0 to your computer and use it in GitHub Desktop.
useful shell commands
# ionice
sudo ionice -c2 -n7 nice -n19 du -sh *
# check current running unicorn ruby version
pgrep -f unicorn -l | grep master | cut -d' ' -f1 | sudo xargs -I{} readlink -f /proc/{}/exe | xargs -I{} sh -c "{} -v"
# curl view header (not HEAD)
curl -D - -s -o /dev/null "http://google.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment