News for hackers. Stuff that matters.
Re:Get-shit-done - Easy way to stop distractions by agj on Wednesday May 04, 2011 @11:49AM (#2514200)
Why such interest in this script? Besides being written in php, it's also a fairly kludgey approach to managing /etc/hosts. Is it the vulgarities?

    #!/bin/sh
    [ $UID -eq 0 ] || { echo "You're not root, asshole."; exit 1; }
    [ -f "/etc/hosts.$1" ] || { echo "/etc/hosts.$1 doesn't exist, asshole."; exit 1; }
    cat /etc/hosts.{$1,tail} > /etc/hosts
...

    sudo ~/bin/stopfuckingoff play
Re:Get-shit-done - Easy way to stop distractions by thyrsus on Wednesday May 04, 2011 @04:57PM (#2515275)
It was a sad day when Red Hat removed the insults from sudo.