Russian roulette [CommitStrip]

3 months ago by cannedtuna to c/programmer_humor

Crossposted from https://lemmy.world/post/49163864

CommitStrip | website

Transcript

7 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”;

DarkCloud 31 points 3 months ago

There's a chance you'll end up with a more efficient system!

path: 0 24651045, hotness: undefined, score: 31, children: 0
neidu3 30 points 3 months ago

This is actually safe to run, as --no-preserve-root is missing

path: 0 24658194, hotness: undefined, score: 30, children: 7
nitroemdash 8 points 3 months ago

Not required on BusyBox-based systems, a.k.a. Alpine.

path: 0 24658194 24664871, hotness: undefined, score: 8, children: 0
ranzispa 8 points 3 months ago

Doubt deleting everything but root is safe on a production server.

path: 0 24658194 24658507, hotness: undefined, score: 8, children: 5
neidu3 15 points 3 months ago

It won't delete anything at all

path: 0 24658194 24658507 24658587, hotness: undefined, score: 15, children: 3
ranzispa 4 points 3 months ago

Oh, checked the manual. Cool, did not know that.

I guess then it should be rm -rf /srv/

path: 0 24658194 24658507 24658587 24658610, hotness: undefined, score: 4, children: 2
neidu3 16 points 3 months ago

That'd probably rattle some managers' cages, yes.

Alternatively, a combination of find /, rand, xarg, and rm could also be fun; delete something random, and pray it was just a readme file

path: 0 24658194 24658507 24658587 24658610 24658826, hotness: undefined, score: 16, children: 0
sun_is_ra 9 points 3 months ago

rm -rf /* should work just fine

path: 0 24658194 24658507 24658587 24658610 24658771, hotness: undefined, score: 9, children: 0
ramasses 2 points 3 months ago

Only deleting .ssh for the fuck of it

path: 0 24658194 24658507 24665121, hotness: undefined, score: 2, children: 0
RonSijm 26 points 3 months ago

More accurate nowadays:

"Hey Claude my prod server is slow. Here are the credentials. Fix pls /yolo"

path: 0 24658443, hotness: undefined, score: 26, children: 0
nitroemdash 8 points 3 months ago

As $RANDOM returns 0 to 32767, chance of the command running is not 1 to 5, but 1 to 5.00018311665.

path: 0 24665079, hotness: undefined, score: 8, children: 1
YellowTraveller -1 points 3 months ago
path: 0 24665079 24669695, hotness: undefined, score: -1, children: 0
dsrn 5 points 3 months ago
path: 0 24657181, hotness: undefined, score: 5, children: 0
ranzispa 5 points 3 months ago

When you get laid off, celebrate playing this game. Ensure to practice a few hundred times in order to make sure you win.

path: 0 24658512, hotness: undefined, score: 5, children: 0
bitjunkie 4 points 3 months ago

This isn't funny but it did make me add a line to my .bash_aliases

path: 0 24670295, hotness: undefined, score: 4, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33675
2568
7703

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...