Live data from Hacker News

A Get Shit Done script

github.com

1–10 of 21 posts

Re: A Get Shit Done script

#5

Problem with these is I end up turning it off.

Self-control only goes so far, but if (like me) you have trained yourself to flick to reddit as soon as you get even slightly bored, it's a good way to untrain that behaviour.

Re: A Get Shit Done script

#7

Problem with these is I end up turning it off.

The one I've found that's worked best for me is a Chrome extension called Delayed Gratification that actually only delays my access to the site for 30 seconds. It's enough that I can convince myself to sit there and wait for 30 seconds rather than turn it off when I really want access to the site and feel it's justified.

But 30 seconds is also a decent amount of time to convince myself that I don't really need to see that site right now, and often I'll just close the tab a few seconds in and get on with work.

Re: A Get Shit Done script

#8
I think there is a bug in the 'off' function (though I haven't had the chance to run it yet).

    # Read from the array, and remove files from /etc/hosts
    for site in $*; do
        sed -i '' "/127.0.0.1 $host/d" $hosts
    done
it should be $site instead of $host (the latter is never referenced elsewhere in the file)

Re: A Get Shit Done script

#9
post #3

> #!/bin/bash If there's nothing bash-specific you may wish to use "#!/bin/sh" (or "#!/usr/bin/env bash" if bash is required.)

It's full of bashisms. Arrays, double equals (==) in conditionals, and the function keyword stand out to me.

Re: A Get Shit Done script

#10
These kinds of projects are the epitome of the "using technology to solve human problems" fallacy.

If you are having trouble staying motivated to work, then you need to fix that. For me, browsing facebook et al is a palette cleanser of sorts. If I lock myself to only being able to view 'work' sites, I'd become too stressed to do my best work.

Post reply on HN