Skip to content

Instantly share code, notes, and snippets.

@mhemmings
Created March 31, 2015 16:53
Show Gist options
  • Save mhemmings/b44d7466bd2bef12a80b to your computer and use it in GitHub Desktop.
Save mhemmings/b44d7466bd2bef12a80b to your computer and use it in GitHub Desktop.
Block Facebook and Twitter in your hosts file with one command: 'work'
alias work='echo -e "127.0.0.1 www.facebook.com\n127.0.0.1 twitter.com" | sudo tee -a /etc/hosts > /dev/null'
@afbasith
Copy link

Block twitter.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment