Live data from Hacker News

Noprocrast (2010)

web.archive.org

21–30 of 108 posts

Re: Noprocrast (2010)

#21
Disabling access from /etc/hosts has been very useful for me, though my similar [1] productivity script did not work as well as I wanted it.

For quite some time I had been using hostess [2] to enable/disable specific websites, yet this too had a couple of problems.

1. Docker Desktop (macOS) keeps appending on my /etc/hosts without asking me when I start it. This requires usage of `hostess fix` to remove duplicate entries.

2. Changing /etc/hosts requires sudo access, which means I have to keep inputting it when I need to make any changes.

Eventually I just `vim /etc/hosts` instead of `sudo hostess fix && sudo hostess on news.ycombinator.com`

[1] https://github.com/sirodoht/productivity.sh

[2] https://github.com/cbednarski/hostess

Re: Noprocrast (2010)

#22
post #20

Thanks for the catalyst to re-enable my /etc/hosts approach to simplifying my life. I'm surprised to see that adding: 127.0.0.1 youtube.com www.youtube.com to /etc/hosts doesn't seem to block youtube, but every other line I added blocked/routed as expected. Is there something special about youtube and chromium?

[deleted]

Re: Noprocrast (2010)

#24

Earlier quoted context omitted.

I did a combination of this strategy and the one in the article. I changed my hosts file, then changed my root password to something with ~20 characters, then I gave the password to my wife (coworker would have also worked) and told them not to let me have it before 6pm. In cases I need to install something I just had to convince them of the necessity. The human element really worked wonders compared to a poorly tech…

What happens when you need to perform other administrative tasks on your machine?

I just had to make the case to my wife/coworker. The nature of this technique is that it works best when you don't have much serious administration to do and just have to grind out a lot of writing.

Re: Noprocrast (2010)

#25

Disabling access from /etc/hosts has been very useful for me, though my similar [1] productivity script did not work as well as I wanted it. For quite some time I had been using hostess [2] to enable/disable specific websites, yet this too had a couple of problems. 1. Docker Desktop (macOS) keeps appending on my /etc/hosts without asking me when I start it. This requires usage of `hostess fix` to remove duplicate ent…

[deleted]

Re: Noprocrast (2010)

#26
post #8
post #5

Can someone please help me with how to achieve the same thing on windows that works on any browser ? I tried some DNS blocking programs and can't get anything to work properly.

Can't you do the same by modifying c:\Windows\System32\Drivers\etc\hosts ?

I tried this and it doesn't seem to work on https

Re: Noprocrast (2010)

#27
post #5

Can someone please help me with how to achieve the same thing on windows that works on any browser ? I tried some DNS blocking programs and can't get anything to work properly.

I know someone who had the same problem and didn't want to pay for one of the subscription apps so he built his own [0]. Looked great from the demo he showed me but I don't have Windows so I haven't tried it personally.

[0] https://lazarfocused.com/

Re: Noprocrast (2010)

#28

Disabling access from /etc/hosts has been very useful for me, though my similar [1] productivity script did not work as well as I wanted it. For quite some time I had been using hostess [2] to enable/disable specific websites, yet this too had a couple of problems. 1. Docker Desktop (macOS) keeps appending on my /etc/hosts without asking me when I start it. This requires usage of `hostess fix` to remove duplicate ent…

You can use the NOPASSWD directive in your

     /etc/sudoers 
file to allow hostess to run in sudo without auth.
Post reply on HN