Skip to content

Instantly share code, notes, and snippets.

@mpereira
Created July 8, 2012 18:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mpereira/3072187 to your computer and use it in GitHub Desktop.
Save mpereira/3072187 to your computer and use it in GitHub Desktop.
A little help to stop unconsciously checking distracting web sites.
alias focus="sudo sh -c \"echo '127.0.0.1 www.facebook.com twitter.com mail.google.com # aab6de513ab5de9359809f3cdb62d352' >> /etc/hosts\""
alias unfocus='sudo sed -i "" "/aab6de513ab5de9359809f3cdb62d352/d" /etc/hosts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment