Show HN: Avoiding distractions with /etc/hosts
1 comments
Yep, I keep a bunch of distracting sites in my /etc/hosts file (slither.io included) and even wrote a script to quickly block them all [1] ... but of course don't have a script to unblock them :)
[1]: https://gist.github.com/shmay/f09c0ce1c9f36064f7dc12b0b2331c...
[1]: https://gist.github.com/shmay/f09c0ce1c9f36064f7dc12b0b2331c...
Today is the day I killed slither.io
According to toggl, it took me 2 hours and 17 minutes to do so (including this post). If you too suffer from an addition to slither.io or any other web based distraction (perhaps even hn?) my solution is available to you for the low low cost of the time it takes you to edit a txt file.
Open up /etc/hosts in your favorite text editor (vim of course) and add the following...
Windows users (do they still exist?), you are on your own. Beside you probably need a good distraction to avoid bashing your computer with a hammer the next time that pleasant little paperclip tells you what to do.
Upon future visits to slither.io you will be greeted with a friendly reminder that you are not working. Your life will be saved.