Gbwd
A little Gem to help eliminate website distractions. It basically routes any requests for the domains that are being blocked to http://getbacktoworkdummy.com
Installation
Add this line to your application's Gemfile:
gem 'gbwd'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gbwd
Usage
NOTE: Please back up your /etc/hosts file before running any commands.
Add a domain to be blocked:
sudo gbwd add -d www.youtube.com
Remove a domain from being blocked:
sudo gbwd remove -d www.youtube.com
List all domains being blocked:
sudo gbwd list
Stop all domains from being blocked:
sudo gbwd disable
Start blocking all domains again:
sudo gbwd enable
Todos
- Make a copy of /etc/hosts file before modifying it
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request