rocu.de
About me Archive Replies Imprint Privacy Also on Micro.blog
  • Script to disable internet connectivity for Mac OS X

    From time to time, I really want to make it hard for me to seek for distractions.

    I found myself using the nice Mac OS X tool Freedom all the time. Freedom disables the network connectivity, which means no Twitter, Facebook etc.

    But when I revisited the site, I found that the author now charges $10 for it - That’s just a little too expensive in my opinion.

    So, I went out, and it took me 5 minutes to come up with freedom.sh.

    # !/bin/bash
    echo "Enough of this filthy internet" | cowsay -s
    sudo route -n delete default &> /dev/null
    

    Cowsay required. (If you prefer not to install cowsay just remove the line!)

    ________________________________
    < Enough of this filthy internet >
    --------------------------------
                ^__^
                (**)_______
                (__)       )/
                 U  ||----w |
                    ||     ||
    

    To reenable your internet, you have to add back the default route or restart your computer.

    Little update (18.09.21): I do use Freedom now. It got even more expensive - but it syncs between all my devices and changed from a internet kill-switch to something even more useful. I found it great to disable news sites and other addictive sites during corona.

    → 9:00 AM, Sep 30
  • Ruby Tapas

    I am quite excited about Avdi Grimm’s new project Ruby Tapas.

    Three times a week, Avdi post short videos about different concepts and techniques in Ruby.

    The first 3 episodes were short, but I already learned some obscure details of Ruby that I didn’t know about

    I think that over many weeks, that should give me a pretty solid knowledge of the parts of Ruby that I do not touch in my daily work.

    → 9:00 AM, Sep 29
  • RSS
  • JSON Feed
  • Surprise me!