• some_guy@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 days ago

    If you’re smart, like me, you’ll unplug your devices immediately. Failure to do so ensures your doom.

  • Sina@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    I still find it funny that in the distant past an engineer thought pasted commands should have some ~~ characters added, so the user has to delete them & think about their actions while pressing their arrow or various faster ctrl+ keys …

  • stembolts@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 days ago

    Holy shit, my computer is infected. I opened my terminal and typed “sudo ls -halR /” and it showed me every file on my computer. Oh my god.

    • laranis@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      I took the “us” in your statement to be “humanity” and it sparked an unexpected feeling of hope.

    • a_jeering_serpent@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      Don’t forget the —no-preserve-root flag or you’ll get an index out of bounds when deleting the recipe for five-root-puree

        • a_jeering_serpent@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 days ago

          Oh i was kind of going for the opposite. 😈

          BTW use caution with your glob there, that only does what you described if the folder has contents, if it doesn’t, rather than getting nothing you’ll get back the parent directory, at least in bash. I’m not one of the cool zsh kids.

          • yetAnotherUser@discuss.tchncs.de
            link
            fedilink
            arrow-up
            0
            ·
            5 days ago

            Huh, are you sure or am I just stupid?

            [user@device Documents]$ mkdir test
            [user@device Documents]$ cd test
            [user@device test]$ ls ./*
            ls: cannot access './*': No such file or directory
            

            Same behavior with * instead of ./*.

            • a_jeering_serpent@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              0
              ·
              5 days ago

              I may be the stupid one, i’m sure there’s a related gotcha here under some condition, but objectively not the one i described. Sorry, did not intend to waste anyone’s time and i do appreciate the response back to set me straight.

  • rockSlayer@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    Only tangentially related, but this reminds me of an interaction I had here on Lemmy. I was talking about my pure bash, brain-made CLI app that pushes files between Google Compute head nodes and Google Storage buckets, but does some additional fuckery with bash strings to serve as a crude git. Basically, the app manipulates a string that represents a bucket, and then uses the appropriate gcloud command with that string.

    Someone was extremely concerned about the security of my app, how I should do an AI code review, and that only good programmers use all the tools available to them. I told them that I only want my code to be reviewed by humans. They said it was wild that someone would decline a security review. I told them that if there’s a security issue with my app, they’ll have to take it up with Google.