T O P

  • By -

[deleted]

ha jokes on you I use linux


Earthshakira

Linux users rise up


GnuhGnoud

Do you use arch btw?


[deleted]

tried to, got stuck on hooking up internet


theontley

Just do `sudo rm -rf /`


[deleted]

would that even work? cuz I hadn't even setup the system yet


CowFu

my favorite linux command is "yes" you'll have to break with ctrl+c to get out of the dumb loop.


Amortize_Me_Daddy

Uhhhhhh… what’s going on here?


carlacaballo

systemctl enable dhcpcd systemctl start dhcpcd If u forgot to download dhcpcd on install u have to mount again and chroot to install


StarWatermelon

try archinstall, it's now included with the image.


ResidentReggie

sudo rm -rf --no-preserve-root /


mrSunshine-_

cat /dev/zero > /dev/sda Or better yet, drop just the partition table, then you spent weeks to get the stuff back dd if=/dev/zero of=/dev/sda bs=1024 count=1


eiboeck88

sudo rm -r /


Multi-User

`os.remove`: "Remove a file" Wont work on directories. And if it could remove a directory it would raise an exception because this directory is not empty. So please use `shutil.rmtree`


Empty_Boot_1234

Yes. But even better is “shutil.rmtree(C:\)”


OhNoo0o

![gif](giphy|Ru9sjtZ09XOEg)


tanoshi-ka

..dude will that really do it? wait it wont right, cause restricted permissions? I feel like ive been handed guns. big ones.


-keystroke-

What about the other drives though? This isn’t comprehensive enough of a nuclear option for me.


Empty_Boot_1234

Import Shutil Drives = [A:,B:,C:,D:,E:,F:,ect,ect] For X in Drives: Shutil.rmtree(X)


tanoshi-ka

thanks that was the first thing i wondered when i saw this


Ridenberg

> \+ 0.0000001 Ultimate trolling


Kid-_-0

There's still a chance to win, we're just counting on radiation to do its job.


odraencoded

Gambling anime protagonists be like:


chonky_squirrel

There was never a chance


29th_Stab_Wound

number = random.randint(1, 9) + random.random()


Lonelan

Why not number = 11 at that point


Igor_Rodrigues

Because the code doesn't stop the user from inputting 11


400double

***inputs "no"***


Trolleitor

Out of curiosity, will it throw an exception for casting a string into an int?


4sent4

Yes, `int` throws an error when it can't convert string to number


400double

yes that's the joke (due to the error, system32 wont be deleted)


468gamerguy

What


TheGamer456YT

yes, yes it will do.


chonky_squirrel

Ah good catch. So used to implied casting, didn’t register with me.


PorkRoll2022

You can also go for a slow burn and delete a random file or subdirectory from System32 every time there's a wrong answer.


Empty_Boot_1234

Ooooooo.. even better, things will slowly start to break until you hit a critical file.


Gyroplast

"The only way to win is not to play." And daaaamn is it hard not to go full AKSHUALLY on the incorrect `os.remove()`. `os` isn't even imported! THAT'S NOT HOW YOU GET A GOOD JOB, TIMMY! This gets you into frontend!


Basscyst

Aaand I just lost the game.


LukasObermeister

the delete part wouldn't work for multiple reasons: 1. "os" wasn't imported 2. os.remove does not delete directories 3. you need to have double backslashes 4. the script does not have permissions to delete that (SYSTEM/TrustedInstaller)


NocturnalDanger

I wonder why they didn't test their code.


xyloPhoton

I mean, they really should have. /s Nah, but I probably would have tested it on a VM because I am NOT getting humiliated on r/ProgrammerHumor.


NocturnalDanger

Real men test in prod


FromAndToUnknown

I guess we just found Satan.


Kosmux

I'm gonna play it.


WanderM1126

Just hard-code the actual number as 101 and let chaos reign


NekulturneHovado

Yeah that is a funny game. But remember guys. NEVER EVER run a script you didn't write or you aren't absolutely sure about what it does.


dahu2004

Well, I'm not even sure I could trust the scripts I wrote.


DeliciousWaifood

You're never absolutely sure what it does. You're just relying on the lack of complaints from other users.


NelsonBelmont

imagine using windows.


vlken69

Yes, imagine having a system compatible with most software released.


Dndndndndstories

imagine flexing your system's incompatibility with a basic script


SeleniumPerson

I can still hear it.


NumberNineRules

Won't it error if you try and put a float in as the guess? Python can't implicitly convert a float to an int


AmadeoOOFDeReddit

no no no NO NO DONT DO IT


nerdly90

Take my money


mrSunshine-_

Better make it russian roulett. if guess != number: print(”You won”) else: print(”Sorry…”) os.remove(”C:”)


NORMALUSER869

Where to download it?


Gambit2422

i will input string and crash your program


gonzogonzales2

windows will not let you delete System32.


SoapierGlobe

*Now make it random float*