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

ways to close vim

discuss.tchncs.de

message-square
42
fedilink
207

ways to close vim

discuss.tchncs.de

Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · 1 year ago
message-square
42
fedilink
  • Eufalconimorph@discuss.tchncs.de
    link
    fedilink
    arrow-up
    18
    ·
    1 year 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
      ·
      1 year 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
        ·
        1 year 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
          ·
          1 year ago

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

    • vrkr@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year 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
Visibility: Public
globe

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

  • 51 users / day
  • 774 users / week
  • 3.99K users / month
  • 17K users / 6 months
  • 3 local subscribers
  • 19.4K subscribers
  • 1.01K Posts
  • 36.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org