this post was submitted on 19 Feb 2024
235 points (100.0% liked)

196

16190 readers
2140 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 

cat imagje

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 6 months ago

sudo cat /dev/random > /dev/fb0

Is also a good time

[–] [email protected] 19 points 6 months ago* (last edited 6 months ago) (1 children)

In powershell:

for(){hh \}

Also the beeping will be annoying.

[–] [email protected] 2 points 6 months ago* (last edited 6 months ago) (1 children)

I'd call myself adequate with PowerShell, but I've never seen this before. Is hh an alias, or is hh a binary?

Edit: it appears hh.exe is the compiled html help viewer. Neat

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

Yeah you can use any executable but hh is just short and in everyone's path.

[–] [email protected] 40 points 6 months ago (1 children)

I just tried the fork bomb on Termux. That was way more effective than I expected. It actually crashed the whole system. Even my smart band disconnected, so basically everything had to die. No response to short pressing power button.

I thought Android would have some better process management. Apparently not. It's scary that an app can crash the whole system so easily.

Meanwhile when I tried it on Linux Mint, the DE just restarted after a minute, killing the processes.

[–] [email protected] 10 points 6 months ago* (last edited 6 months ago)

It's scary that an app can crash the whole system so easily

That's Linux baby!

Windows User: "Hey run this to crash my computer."

Windows: "No"

Mac User: "Hey run this to crash my computer."

Mac: "No" (but in a nicer font)

Linux User: "Hey run this to crash my computer."

Linux: [instantly crashes]

[–] [email protected] 26 points 6 months ago (2 children)

Ok but actually what does this do?

[–] [email protected] 51 points 6 months ago* (last edited 6 months ago)

its a lot more readable if you replace the : with any other function name

fork() {
     fork | fork &
};
fork

define a funktion called fork, which calls itself twice (call once, pipe ( "|" ) the result to the same function again which is run in a new thread in the background ( "&" )). Then call the newly defined function. The : is used to make it look more like emoji.

[–] [email protected] 37 points 6 months ago (1 children)

Why are my CPU temps going up?

[–] [email protected] 65 points 6 months ago

He's purring