this post was submitted on 19 Jul 2023
207 points (91.2% liked)

Programmer Humor

20743 readers
501 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 42 comments
sorted by: hot top controversial new old
[–] Jakylla@sh.itjust.works 40 points 2 years ago (3 children)
  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
[–] BrooklynMan@lemmy.ml 16 points 2 years ago

nuke it from orbit. it's the only way to be sure.

[–] rtxn@lemmy.world 7 points 2 years ago
  • Wait for a sufficiently powerful coronal mass ejection to collapse the global electric grid
[–] diemechanist@programming.dev 1 points 2 years ago (1 children)

"Simple and easily explained."

[–] Jakylla@sh.itjust.works 1 points 2 years ago

Pretty sure I can learn my grandma to put a fork in any socket to close Vim, no prior knowledge needed

[–] mayoaddict@pawb.social 25 points 2 years ago (1 children)
[–] z3n0x@feddit.de 6 points 2 years ago

"this is my life now"

[–] alnilam@lemmy.world 24 points 2 years ago (2 children)

Does colon-capital-Q-exclamation mark even work? I'm pretty sure it's only lower case q.

[–] Kerb@discuss.tchncs.de 22 points 2 years ago (1 children)

its supposed to be lowercase,
but imgflip put the entire text in uppercase.

[–] RustySharp@programming.dev 5 points 2 years ago

Honestly, the joke landed anyway. I've done numerous uppercase-Q trying to quit, because I didn't let go of Shift fast enough after typing the colon...

[–] nickwitha_k@lemmy.sdf.org 1 points 2 years ago

Was going to say this, myself.

[–] Eufalconimorph@discuss.tchncs.de 18 points 2 years ago (2 children)

cat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault.

[–] julianh@lemm.ee 2 points 2 years ago (1 children)

...you can write to program memory? Idk how exactly but that feels like a security risk.

[–] nintendiator@feddit.cl 6 points 2 years ago (1 children)

It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...

You do need to be root to do it to arbitrary processes.

[–] vrkr@programming.dev 1 points 2 years ago* (last edited 2 years ago)

dumb way.

Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"

[–] cloudless@feddit.uk 11 points 2 years ago

Amateur. Just unplug the power cable.

[–] CaptPretentious@lemmy.world 6 points 2 years ago

Open vim.

Accept vim is the OS now.

[–] Sarsoar@lemmy.world 5 points 2 years ago (1 children)

ctrl-S instinctively from windows then panic when the terminal pauses and isnt accepting input so you restart the computer.

[–] MattTheProgrammer@kbin.social 0 points 2 years ago

Fuck, are you me?

[–] Boermund@feddit.de 5 points 2 years ago

One panel below: shut down the computer

[–] graham1@gekinzuku.com 5 points 2 years ago (1 children)
[–] Kerb@discuss.tchncs.de 4 points 2 years ago (1 children)

holy crap,
that's exactly what i wanted the last command to do.

i just didn't know you can target jobs,
and settled with quitting the shell instead

[–] graham1@gekinzuku.com 2 points 2 years ago

yeah it's my favorite way to exit Vim. I post it every time I get a chance lol https://gekinzuku.com/comment/202790

[–] mormegil@programming.dev 4 points 2 years ago

There's a whole repo of possible methods: https://github.com/hakluke/how-to-exit-vim

[–] docAvid@midwest.social 3 points 2 years ago

M-! pkill -9 vim

[–] gornius@lemmy.world 3 points 2 years ago

ZZ will save file though, the others won't. You meant ZQ.

[–] testifier@sh.itjust.works 3 points 2 years ago* (last edited 2 years ago) (1 children)
[–] PipedLinkBot@feddit.rocks 0 points 2 years ago (1 children)

Here is an alternative Piped link(s): https://piped.video/watch?v=s5lj9YdKMz0

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[–] thiccdiccnicc@sh.itjust.works 3 points 2 years ago (1 children)

The comment was edited after the bot responded

[–] princess@lemmy.blahaj.zone 3 points 2 years ago

Alt+PrtScn o

[–] Kolanaki@yiffit.net 1 points 2 years ago (1 children)

Does unplugging the machine not work?

[–] sagrotan@lemmy.world 1 points 1 year ago

I call my local energy provider and simply cancel my contract with immediate effect.

[–] onescomplement@lemm.ee 1 points 2 years ago (1 children)
[–] PipedLinkBot@feddit.rocks 2 points 2 years ago (1 children)

Here is an alternative Piped link(s): https://piped.video/4889ED2-ufw

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[–] onescomplement@lemm.ee 1 points 2 years ago
[–] JohnJVaccaro@lemmy.sdf.org 1 points 2 years ago

try...

:x

it will save your changes and exit vim If there are no changes to the then it just exits vim.

[–] Ducks@ducks.dev 1 points 2 years ago

til shift-z shift-z. am I stupid

[–] stebo02@lemmy.dbzer0.com 1 points 2 years ago
[–] Just_Dominic@programming.dev 1 points 2 years ago
  1. Ctrl + T + alt
  2. sudo reboot