Command line tool for blocking sites to be more productive
1–10 of 28 posts
Re: Command line tool for blocking sites to be more productive
#2Thing is, I'd like these tools to wearing muzzle to lose weight. It's misdirection of effort into avoiding rather than addressing the demonstrated issue of self-control.
Re: Command line tool for blocking sites to be more productive
#3The inconvenience of the action is what makes it work. If I only had to type `workmode stop` I'd have that committed to muscle memory by the end of a work day or two.
Re: Command line tool for blocking sites to be more productive
#4 var hostsFile = process.platform == "linux" ? "/etc/hosts/" : "C:\\Windows\\System32\\drivers\\etc\\hosts";
Surely this won't work on anything but Windows.Re: Command line tool for blocking sites to be more productive
#5http://www.clockwise.ee/gasmask/
here's my 'focus mode'
Re: Command line tool for blocking sites to be more productive
#6if you're on a mac, Gas Mask is a really good tool to switch between different /etc/hosts files http://www.clockwise.ee/gasmask/ here's my 'focus mode' https://gist.github.com/2564478
Re: Command line tool for blocking sites to be more productive
#7Throw these somewhere in your profile:
alias zonemode='sudo mv /etc/hosts /etc/hosts.zoneback && sudo mv /etc/hosts.zonemode /etc/hosts && dscacheutil -flushcache' alias zoneoff='sudo mv /etc/hosts /etc/hosts.zonemode && sudo mv /etc/hosts.zoneback /etc/hosts && dscacheutil -flushcache'
Then fill /etc/hosts.zonemode with the sites you want to block:
127.0.0.1 news.ycombinator.com
127.0.0.1 www.reddit.com
Then make sure your user can run passwordless sudo on those commands and you are set.
Re: Command line tool for blocking sites to be more productive
#8Nice clean tool. Thing is, I'd like these tools to wearing muzzle to lose weight. It's misdirection of effort into avoiding rather than addressing the demonstrated issue of self-control.
Re: Command line tool for blocking sites to be more productive
#9 env: node\r: No such file or directory
(I'm on a Mac)EDIT: Are you using Windows newlines? I think that's the problem.
Re: Command line tool for blocking sites to be more productive
#10Has anyone here used Self Control? (http://visitsteve.com/made/selfcontrol/). Sometimes when I block websites, like Reddit.com and this one and few others it makes other websites look weird. Like the page will still load but be broken. I think Self Control is blocking sites the same way this does. Any idea why this happens?