minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Napain@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago

:3{:3|:3&};:3

lemmy.ml

message-square
78
fedilink
513

:3{:3|:3&};:3

lemmy.ml

Napain@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago
message-square
78
fedilink
alert-triangle
You must log in or # to comment.
  • xlash123@sh.itjust.works
    link
    fedilink
    arrow-up
    81
    ·
    1 year ago

    alias cat=":(){:|:&};:, good kitty

    • glibg10b@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      1 year ago

      *alias cat=":(){:|:&};:

      Tell your instance to update to 0.19.

      • Rustmilian@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        1 year ago

        &ersand;

    • elxeno@lemm.ee
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Then how will i cat file | grep ... ?

      • Refurbished Refurbisher@lemmy.sdf.org
        link
        fedilink
        arrow-up
        11
        ·
        edit-2
        1 year ago

        $(which cat) file | grep meow

      • Ric0la@discuss.tchncs.de
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Useless use of 🐈

      • sevenapples@lemmygrad.ml
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        grep file ...

  • thesporkeffect@lemmy.world
    link
    fedilink
    arrow-up
    70
    ·
    1 year ago

    🍴💣

    • SzethFriendOfNimi@lemmy.world
      link
      fedilink
      arrow-up
      44
      ·
      1 year ago

      🍴💣 🍴💣

      • Molten_Moron@lemmings.world
        link
        fedilink
        arrow-up
        38
        ·
        1 year ago

        🍴💣🍴💣🍴💣🍴💣

        • A_Very_Big_Fan@lemmy.world
          link
          fedilink
          English
          arrow-up
          30
          ·
          1 year ago

          🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣

          • oce 🐆@jlai.lu
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            edit-2
            1 year ago

            spoiler

            https://www.bing.com/images/create/an-astronomy-picture-of-a-star-exploding-into-a-su/1-65d4ba7cbb804bb9b1d370d59152a572?id=y2Zox36rFxcSZPb8wDuKJw%3D%3D&view=detailv2&idpp=genimg&thId=OIG3.STW8YxXrqKZJeEtr01M0&FORM=GCRIDP&mode=overlay

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      30
      ·
      1 year ago

      Fork and knife explosive?! 😱

      • Hazzia@discuss.tchncs.de
        link
        fedilink
        arrow-up
        18
        ·
        1 year ago

        Silverware incindiary!?! ☠️

  • Norgur@kbin.social
    link
    fedilink
    arrow-up
    67
    arrow-down
    1
    ·
    1 year ago

    Hey, now that’s funny. My cat is named

    sudo ulimit - u 31677

    I have a hunch the two wouldn’t get along.

  • Baby Shoggoth [she/her]@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    50
    ·
    1 year ago

    Fork bomb is actually a pretty fantastic cat name

  • perishthethought@lemm.ee
    link
    fedilink
    English
    arrow-up
    44
    ·
    1 year ago

    ELI5?

    • aldalire@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      128
      ·
      edit-2
      1 year ago

      Replace “:” with “a” you get

      a() a a&; a

      Reformatting

      a() {

      a | a &

      };

      a

      So it creates a function, a, which what it does is it calls itself and pipes its output to itself (the a | a). The ampersand means that this will run entirely in the background. Then, to initiate things, the command calls a (in the last line)

      So, there will be exponentially be many recursive calls to a, which will eventually deplete your stack and set your pc on fire

      • FilthyShrooms@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        1 year ago

        This is why I should not be allowed to use Linux

        • starpanda@lemmy.world
          link
          fedilink
          arrow-up
          20
          ·
          1 year ago

          on windows a forkbomb is literally %0|%0 iirc

          • eatham 🇭🇲@aussie.zone
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            How does that work?

            • starpanda@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              1 year ago

              %0 means your current command iirc so it just reexecutes itself piping its own output to the new instances

          • FilthyShrooms@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Please I do not need this information oh god what do I do now?

            • starpanda@lemmy.world
              link
              fedilink
              arrow-up
              5
              ·
              1 year ago

              find your nearest school pc with like 8g ram

              • Hugucinogens@lemmy.blahaj.zone
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                Did you just… Write 8g ram, implying it’s an amount small enough to belong on a school pc?

        • halva@discuss.tchncs.de
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          most linux distros from android to alpine can be and often are configured to limit the amount of forks a user can spawn

      • Omega_Haxors@lemmy.ml
        link
        fedilink
        English
        arrow-up
        17
        ·
        1 year ago

        Use `` to disable text formatting, it's intended for code but it can be used for anything where formatting shouldn't be considered

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        I always wonder, does it really need the pipe? Why not just :&:& ?

    • Skyhighatrist@lemmy.ca
      link
      fedilink
      arrow-up
      38
      ·
      1 year ago

      It’s a fork bomb. It exponentially forks processes in the background in an attempt to consume all CPU cycles.

    • Davel23@kbin.social
      link
      fedilink
      arrow-up
      9
      arrow-down
      10
      ·
      1 year ago

      https://www.youtube.com/watch?v=nB_s79lHSVs

      • PlutoniumAcid@lemmy.world
        link
        fedilink
        arrow-up
        47
        ·
        1 year ago

        Just a sentence, please kind sir, not a video?

        • Darkrai@kbin.social
          link
          fedilink
          arrow-up
          29
          ·
          1 year ago

          Its creating a function named : that spawns two copies of : then calls that function to start the duplicating code or forks. For that, its called a fork bomb.

          • NegativeLookBehind@lemmy.world
            link
            fedilink
            arrow-up
            8
            ·
            1 year ago

            It also backgrounds the process with &

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          20
          ·
          1 year ago

          Is a fork bomb, it starts a process that starts two more processes, which each start two more processes, which each start two more processes, which each start two more processes…

          And eventually the computer locks up plus it’s hard to kill since the PIDs change constantly.

        • Midnight Wolf@lemmy.world
          link
          fedilink
          English
          arrow-up
          15
          ·
          1 year ago

          https://en.wikipedia.org/wiki/Fork_bomb

          Self-replicating program, malicious

        • DaGeek247@fedia.io
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          Fork bombs are things that infinitely spawn new forks, until the system crashes. Its an infinite ‘if true, spawn new instance’ loop that only stops when the system gets a hard reset.

        • Classy@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 year ago

          Maybe he thought the topic was interesting and wanted to share more details with us? I appreciate the video.

  • nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    33
    ·
    edit-2
    1 year ago

    Better cat version:🐈(){🐈|🐈&}

    • Vulwsztyn@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      you are missing ;🐈 at the end

  • z3bra@lemmy.sdf.org
    cake
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    1 year ago

    I tried but got an error:

    :& : Command not found
    

    Is it expected ? Did I type something wrong ? I’m confused…

    • bmaxv@noc.social
      link
      fedilink
      arrow-up
      28
      arrow-down
      1
      ·
      1 year ago

      @wgs

      Generally, don’t just copy paste things you find online.

      Something else to be aware of and stay away from is “rm -rf /” which will delete everything on your computer, including your operating system. Naturally this will crash the computer and you will not be able to start it again.

      (You should be able to boot from a usb stick though.)

      • BaardFigur@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        edit-2
        1 year ago

        deleted by creator

        • z3bra@lemmy.sdf.org
          cake
          link
          fedilink
          arrow-up
          7
          ·
          1 year ago
          /usr/share/language/pack/français: Permission refusée
          
        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 year ago

          @BaardFigur My dude, I understand and celebrate the memes, but please understand that linux first time using is a sensitve period in people’s lives and the reach of modern social media means there is some x% of users who will have a bad time, because they saw that meme and took it seriously.

          It’s a statistical guarantee.

          • regdog@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            It is also a fantastic learning experience

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Always read mails really fast

      • z3bra@lemmy.sdf.org
        cake
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        1 year ago

        I just tried your command and it yields a lot of Permission denied. Is it expected or your command is incomplete ?

        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          14
          ·
          1 year ago

          @wgs I really hope you’re trolling. Don’t do that.

          Yes, this is expected and means the regular safeties are working. Don’t turn those off please.

          • z3bra@lemmy.sdf.org
            cake
            link
            fedilink
            arrow-up
            20
            arrow-down
            1
            ·
            1 year ago

            Nevermind I figured it out, you gotta use sudo for it to work properly !

            • OsrsNeedsF2P@lemmy.ml
              link
              fedilink
              arrow-up
              11
              arrow-down
              1
              ·
              1 year ago

              Lies, if you actually did that you would know you need the --no-preserve-root flag

              • z3bra@lemmy.sdf.org
                cake
                link
                fedilink
                arrow-up
                2
                ·
                1 year ago

                Not with busybox’s rm 🤘

              • Rustmilian@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                1 year ago

                sudo cat /dev/urandom > /dev/sda*

                • superbirra@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 year ago

                  it does not work, it says permission denied. Is there anything I should do ?

      • typicalDude778@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        sudo rm -rf / --no-preserve-root

        and your password to delete the french language pack :3

    • beepnoise@beehaw.org
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      It’s a fork bomb. Specifically it’s a piece of code that recursively calls itself and then it calls itself to run the code.

      Thank goodness it did not work, but please do not actually run code like this!! Do your best to figure out what the code is doing before you attempt to run it!

      • z3bra@lemmy.sdf.org
        cake
        link
        fedilink
        arrow-up
        18
        ·
        edit-2
        1 year ago

        Nevermind I figured what went wrong, I mistyped it initially ! It would have been much easier to copy paste it if it wasn’t a picture…

        Fun fact, the command displays a nice cat picture in ASCII :)

        Edit: screenshot

    • THCDenton@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      It means you have a virus

      • shootwhatsmyname@lemm.ee
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 year ago

        I know a guy that can fix it if you send me your ssh keys

        • THCDenton@lemmy.world
          link
          fedilink
          arrow-up
          16
          ·
          1 year ago

          Both of them?

  • Ace@feddit.uk
    link
    fedilink
    arrow-up
    30
    ·
    1 year ago

    deleted by creator

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    24
    ·
    1 year ago

    /etc/security/limits.conf exists …

    • Baut [she/her] auf.@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      34
      arrow-down
      1
      ·
      edit-2
      1 year ago

      Then remove that for appropriate animal care! Do you want the cat to starve?

      • 𝘋𝘪𝘳𝘬@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Don’t worry, the limit is set large enough. No cat will starve on THIS machine.

    • Gamma@beehaw.org
      link
      fedilink
      English
      arrow-up
      15
      ·
      edit-2
      1 year ago

      You should try typing his sister’s name in first, sudo sh -c “>/etc/security/limits.conf”

  • idunnololz@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    Stop doxxing the cat

  • calm.like.a.bomb@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    I use fish. This doesn’t work.

    • body_by_make@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Probably for the best, cats eat fish

  • crawancon@lemm.ee
    link
    fedilink
    arrow-up
    11
    ·
    1 year ago

    while this doesn’t work on many modern systems due to a variety of changes since this was widely disseminated, I still like this one and the batch file method of %0|%0, as they are examples of elegant, efficient code on their respective default command line interpreters.

  • cybervseas@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    This is made extra humorous thanks to the escape that my Lemmy client adds to the post title. & to &

  • neo (he/him)@lemmy.comfysnug.space
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    fork bomb can get the fork over it

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 257 users / day
  • 285 users / week
  • 2.52K users / month
  • 4.01K users / 6 months
  • 2 local subscribers
  • 36.4K subscribers
  • 1.75K Posts
  • 36.2K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org