Last active
August 29, 2015 14:07
-
-
Save woledzki/29256e6e492f1bd71104 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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