Created
May 7, 2012 21:54
-
-
Save tvlooy/2630719 to your computer and use it in GitHub Desktop.
How to block facebook in a very funny way
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
#!/bin/bash | |
while [ TRUE ]; do | |
detect=$(netstat -an | grep `dig +short www.facebook.com` | grep ESTA | wc -l) | |
if [ $detect -ne 0 ]; then | |
osascript -e "set Volume 7" | |
say -v Zarvox "computer says no, `whoami`" | |
killall Safari | |
sleep 10 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment