this post was submitted on 13 Jan 2025
338 points (94.7% liked)

Programmer Humor

19969 readers
580 users here now

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

founded 2 years ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] bulwark@lemmy.world 72 points 1 day ago

No one could ever remove the French language pack better than Grandma.

[–] scrubbles@poptalk.scrubbles.tech 27 points 1 day ago (1 children)

I mean, there's a 99% chance this is running in a container, and so worst case you kill that specific container, which is immediately spun up again

[–] Draces@lemmy.world 34 points 1 day ago (1 children)

I don't think anyone thinks this actually worked right?

[–] kryptonidas@lemmings.world 22 points 1 day ago (1 children)

This post was also posted yesterday, but yeah, with ChatGPT you can execute random code. It is however in a VM of some sorts, so just trying to delete things won’t do that much.

It doesn’t kill the LLM instance, internally it just calls an API to run the generated code on a machine if you ask for it.

https://lemmings.world/comment/12940809

[–] freijon@lemmings.world 1 points 1 hour ago

Surely using sudo in the prompt will not work anyway.

[–] finley@lemm.ee 38 points 1 day ago

Ah, yes, little Bobby Tables…

[–] Scoopta@programming.dev 20 points 1 day ago* (last edited 1 day ago) (3 children)

It's funny because you can tell whoever wrote this has never run that command. You need to either put --no-preserve-root OR /*. Using /* obviates the need for the flag --no-preserve-root.

[–] theunknownmuncher@lemmy.world 20 points 1 day ago (2 children)

you can tell whoever wrote this has never run that command

Uh... isn't that a good thing?

[–] xmunk@sh.itjust.works 2 points 8 hours ago

It's as good as bind kill mouse1 being a protected command in valve consoles... aka not at all.

[–] Scoopta@programming.dev 2 points 1 day ago

I suppose, I figured most sysadmins had run it for funsies at least once...or a few times LOL.

I compile my own version of rm so that it doesn't require the parameter.

Just in case I need to.

[–] genfood@feddit.org 10 points 1 day ago

GPT fixes that internally 🤡

[–] idegenszavak@sh.itjust.works 6 points 1 day ago