Skip to content

Instantly share code, notes, and snippets.

@bripkens
Last active October 11, 2015 13:38
Show Gist options
  • Save bripkens/3867617 to your computer and use it in GitHub Desktop.
Save bripkens/3867617 to your computer and use it in GitHub Desktop.
Commands that I always tend to forget about
sudo netstat -taupen
sudo tcpdump -i en0 -X -vvv host example.com
sudo /lib/ufw/ufw-init start
sudo ufw enable
jpegtran -copy none -optimize -outfile goal.jpg goal.jpg
# Pretty print JSON
| python -m json.tool
# Local development server
python -m SimpleHTTPServer
rename 's/^.*?(\d+).*$/$1.jpg/' *.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment