monyet.cc
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Kerb to Programmer Humor@programming.dev • 2 years ago

ways to close vim

discuss.tchncs.de

message-square
41
fedilink
207

ways to close vim

discuss.tchncs.de

Kerb to Programmer Humor@programming.dev • 2 years ago
message-square
41
fedilink
  • @Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    18•2 years ago

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

    • Julian
      link
      fedilink
      2•2 years ago

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

      • @nintendiator@feddit.cl
        link
        fedilink
        6•2 years ago

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

        • @Eufalconimorph@discuss.tchncs.de
          link
          fedilink
          5•2 years ago

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

    • @vrkr@programming.dev
      link
      fedilink
      1•
      edit-2
      2 years ago

      dumb way.

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

Programmer Humor@programming.dev

!programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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
  • 1.34K users / day
  • 3.64K users / week
  • 7.92K users / month
  • 19.9K users / 6 months
  • 24.9K subscribers
  • 1.56K Posts
  • 57.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org