Skip to content

Instantly share code, notes, and snippets.

@woledzki
Last active August 29, 2015 14:07
Show Gist options
  • Save woledzki/29256e6e492f1bd71104 to your computer and use it in GitHub Desktop.
Save woledzki/29256e6e492f1bd71104 to your computer and use it in GitHub Desktop.
# Disk Usage per folder
ls -1 | while read name; do sudo du -sh "$name"; done | sort -h
# DNS lookups - handy when generating white list for proxy
sudo tcpdump -i any udp port 53 -vv -l | grep 'q: A' --line-buffered > ~/dns-lookups
cat ~/dns-lookups | awk '{ print \$10}' | sort | uniq
# Bash random string
date +%s%N | md5sum | head -c 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment