News for hackers. Stuff that matters.
Re:Facebook exodus: Nearly half of young users have deleted ... by scarecrowbob on Monday October 29, 2018 @02:20PM (#18329797)
I wrote a script:

  #  ~/unfuckfacbook.sh
  #!/bin/bash

  sed -i '' s/'^127.0.0.1 facebook.com'/'#127.0.0.1 facebook.com'/ /etc/hosts
  sed -i '' s/'^127.0.0.1 www.facebook.com'/'#127.0.0.1 www.facebook.com'/ /etc/hosts
  sed -i '' s/'^127.0.0.1 m.facebook.com'/'#127.0.0.1 m.facebook.com'/ /etc/hosts

  sleep 30
  say "Hey asshole, get off Facebook"
  sleep 30
  ~/fuckfacbook.sh
~/fuckfacbook.sh just undoes the hosts file work

It helpped for a while but at some point I had to just commit to not checking it. I have some legitimate business I have to do on there sometimes (I'm a musician and I need more side-guy gigs), so I post updates from insta (which is less addicting to me) or if I open it I commit to not scrolling and browsing but just checking alerts.

It's so fcking creepy though... I mean, I'm legitimately an alcoholic but I can (when I want to, which is usually all the time these days) at least not _start_ drinking... but if I stopped drinking for a couple of days and the bottle of scotch in my cabinet sent me an email trying to get me to drink, I'd have to pour it out.

Re:Facebook exodus: Nearly half of young users have deleted ... by vedanshbhartia on Monday October 29, 2018 @04:01PM (#18330809)
This is brilliant! Thanks a lot. Are there more such scripts that you use for some other purposes?
Re:Facebook exodus: Nearly half of young users have deleted ... by jayalpha on Monday October 29, 2018 @07:33PM (#18332643)
How does this work? I get an error?

sed: can't read s/^127.0.0.1 f....

Re:Facebook exodus: Nearly half of young users have deleted ... by glass_of_water on Monday October 29, 2018 @08:22PM (#18332936)
If you're using macOS, you'll need to do sed -i "" ... (put an empty string argument after the -i flag). If the second to last argument on the command line is -i, I think on the version of sed that ships with most distros, sed assumes that the argument to -i is the empty string and that the last argument in the command is the pattern. The version that ships with macOS, on the other hand, always treats the argument after -i as the extension to use for the backup file.
Re:Facebook exodus: Nearly half of young users have deleted ... by jayalpha on Monday October 29, 2018 @08:42PM (#18333040)
No, I use ubuntu

sed: can't read s/^127.0.0.1 facebook.com/#127.0.0.1 facebook.com/: No such file or directory

Re:Facebook exodus: Nearly half of young users have deleted ... by scarecrowbob on Tuesday October 30, 2018 @02:38AM (#18334365)
If it's helpful, I have to run this as su on macOS. I got no idea if it works for anyone else.