CommitStrip | website

Transcript7 panel comic

1: [2 guys, both in fur lined coats, one wearing a fur-lined hat, the other with crazy hair, sit in circular booth in a rundown bar. 2 empty shot glasses and a bottle are visible on the table.]

Hat: Stop it, you’re crazy! This isn’t you talking, it’s the vodka!

Hair: Leave it…

2: [The two men are sitting across from a third man in a similar fur-line coat and hat, but glasses and a beard. A laptop sits in front of the bearded man.]

Beard: It’s not a game for cowards…

3: [Hair pulls the laptop towards him. Hat looks worried]

Hair: Come on, gimme that and let’s get it over with!

4: [Hair has a crazy and excited look on his face]

Hair: Each one on his own prod server?

Beard: Each one on his own prod server.

5: [Close up of Hats finger clicking the touch pad]

6: [Close up of the sweat dripping down Hats face]

7: [A terminal is open on the laptop screen] Laptop reads: root@server:~# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “Lucky boy”;

you are viewing a single comment's thread
view the rest of the comments
[–] 126 points 2 months ago* (8 children)

In my limited knowledge it randomly generates a number and if this number can be cleanly divided by 6 it deletes everything on the system (and the system itself). If not it prints 'lucky boy'.

So basically the nerd version of russian Roulette. But with higher stakes

  • source
  • parent
  • hideshow 8 child comments
  • [–] 32 points 2 months ago (5 children)

    But with higher stakes

    I see you haven't been converted to believe in the afterlife. Restoring from backup.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 21 points 2 months ago (4 children)

    If the backup is on the same device, it's not a backup, and if you've not tested it on a clean machine, it's not a backup.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 2 months ago

    Also, if you're not willing to actually use it to restore from backup, it's not a backup. I remember once I fucked up surgery on the prod db (we didn't have a testing db...) and was like, ok well at least we can just try again.

    Boss man was like "no! We can't restore from backup, people will lose 1 hour of their work!!!" I spent 7 days writing a script to surgically fix my surgery instead. I had to fudge and guess some of the data but wcyd

  • source
  • parent
  • [–] 1 point 2 months ago

    Someone has asked this on stack overflow as well. https://stackoverflow.com/questions/51150276/linux-random-6-0

    From link:
    It's a Russian roulete in programming. $RANDOM returns a number between 0 and RAND_MAX. If the mod 6 on the returned number equals 0, the command after && (conditional execution) executes and it deletes the root directory, basically destroying everything you have on your disk with no normal way of retrieving it (the OS can't function). If this doesn't happen, the conditional execution after || happens and outputs You live.

  • source
  • parent