🚀 Seen my posts and want more? Dive deep into the issues with Big Tech at Escape Big Tech!

💡 Need FOSS-focused software solutions? Reach out on Matrix at @dannym:balooga.xyz!

  • 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle

  • Danny M@lemmy.escapebigtech.infotolinuxmemes@lemmy.world:wq!
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    edit-2
    9 months ago

    I prefer the extremely intuitive:

    [C-R]=system("grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9")

    or

    i:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9[esc]Y:@"[cr]

    It just rolls off the fingers, doesn’t it?

    Edit: damn it lemmy didn’t like my meme because it assumes that characters between angle brackets are html tags :( you ruined it lemmy

    EDIT 2: rewrote it, just assume that square brackets are buttons not characters


  • Bonus tip:

    ci" means change inside “” ca" means change around “”

    the " can be replaced with any of: ({[wspbt

    For changing inside or around parentheses, curky brackets, square brackets, words, sentences, paragraphs, code blocks and HTML tags respectively.

    So for example if you want to replace all parameters in a function call you just do ci(

    But that’s not all, the c is one of the possible operators, but not the only one.

    di{ deletes the content of a block ya[ copies the content of something inside square brackets g~iw swaps the case of a word guis makes a sentence lower case gUip makes a paragraph upper case

    And the most useless one: g?at replaces the content of an HTML tag with its rot13