nomore
Quickly rewrites a domain to 127.0.0.1 in your /etc/hosts file, so you can concentrate better.
Disclaimer
Use at your own risk. No tests and /etc/hosts is an important file for your system.
Install
Make sure you Ruby setup is also working for root. Then do
$ sudo gem install nomore
Usage
Disable a domain
$ sudo nomore twitter.com
Restore everything after your work is done (optionally takes a domain name)
$ sudo nomorework
Copyright
Copyright (c) 2014 Jan Lelis. MIT-LICENSE.