MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Kerb@discuss.tchncs.de to Programmer Humor@programming.dev · 2 years 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 · 2 years ago
message-square
42
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@programming.dev
      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@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.

  • 609 users / day
  • 4.98K users / week
  • 10.1K users / month
  • 19.6K users / 6 months
  • 4 local subscribers
  • 24.3K subscribers
  • 1.51K Posts
  • 55.2K 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