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

ways to close vim

discuss.tchncs.de

message-square
40
link
fedilink
213

ways to close vim

discuss.tchncs.de

Kerb@discuss.tchncs.de to Programmer Humor · 2 years ago
message-square
40
link
fedilink
  • Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    arrow-up
    18
    ·
    2 years ago

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

    • Julian@lemm.ee
      link
      fedilink
      arrow-up
      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
        arrow-up
        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
          arrow-up
          5
          ·
          2 years ago

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

    • vrkr
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      dumb way.

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

Programmer Humor

programmer_humor

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: [email protected]

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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.26K users / day
  • 4.81K users / week
  • 9.18K users / month
  • 18K users / 6 months
  • 2.39K local subscribers
  • 23.2K subscribers
  • 1.37K Posts
  • 51.6K Comments
  • Modlog
  • mods:
  • adr1an
  • Feyter
  • BurningTurtle
  • Pierre-Yves Lapersonne
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org