Little programs or scripts or automations you’ve created ad-hoc to solve a particular single use case

I have lots of shortcuts i make on my phone and I have one i love that detects when bluetooth accidentally or purposefully disconnects from my speaker and reconnects it and fixes a playback glitch so its back to playing properly

  • datavoid@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 hours ago

    My most used one is a two letter terminal alias (zz for zigzag) that copies all the track information from a specified playlist, or from my “download" playlist if none is provided. It can also read from CSV and text files in order to remove all special characters and repeated words from each name. Then it outputs a formatted version to my clipboard, which I then paste into another program’s config file. Then I wait…

  • jordanlund@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    21 hours ago

    I have a lot of comic book boxes:

    I created a script that lets me query the database to return the box numbers for certain content.

    I can search by writer, artist, title, character, notes, even down to issue number.

    What I’d LIKE to do is hook it into a voice recognition system and smart lights and get it to light up the boxes “Wheel of Fortune” style. But I’m aways off that yet.

  • Typewar@infosec.pub
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    14 hours ago

    I made a website to practice reading my wristwatch: https://aadniz.github.io/niwa-practicer/ (works best on PC, and I’m well aware of many issues)

    Since depth is important to recognizing the odd and even, quickly mapping them to the number, I made it “fake” 3D, tracing each layer in krita.

    There was no deep motivation for this other than refreshing myself a bit of React from University. With my neverending list of project plans, I felt like this one was a good choice for that. Here is the source code: https://github.com/Aadniz/niwa-practicer

  • some_guy@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    17 hours ago

    I wrote a coin flip script that randomly calls qlmanage -p tails.jpg / heads.jpg (Mac) to flip a virtual coin.

  • baines@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    15
    ·
    22 hours ago

    i wrote a simple program to wiggle my mouse

    you can guess why

    it was a rip off from a coworker’s program

  • stoy@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    10 hours ago

    I have one deployed project using a raspberry pi.

    A water temp meter that reports the water temp at a local swimming hole to a private webpage. Built using a raspberry pi zero w, a timer, an MC battery, a DS18B20 sensor and a bash script running as a service on bootup.

  • jBoi@szmer.info
    link
    fedilink
    arrow-up
    7
    ·
    19 hours ago

    I made a browser extension to make downloading Minecraft mods easier. It would scrape the curseforge page you’re visiting, search for the mod on modrinth, and redirect you if it found one. It was actually very useful when I needed it, I even put it on the extension stores and it gained some users.

    I also have a small collection of random python numpy and matplotlib utilities. I need to do some basic graphs and data analysis for uni, and this simplifies it a lot.

  • pmk@lemmy.sdf.org
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    18 hours ago

    Cowsay as a Service. A Go microservice that lets you send form or json http post with curl or whatever to an api over the internet and in return you get the cowsay ascii art you requested.

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    21 hours ago

    It’s not an answer, but I really hate how hard this is to do on Android, including it’s FOSS versions. You can root it and do something like that then, but that undercuts the whole system design and is a terrible hack.

    That’s like my main beef with the whole mobile ecosystem.

  • FancyPantsFIRE@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    23 hours ago

    I built a script that runs on a raspberry pi with an nfc reader and speakers. It’s setup with nfc cards to play music for my kids. they don’t use it as much as they used to but it’s still going strong after four years!

  • Victor@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    18 hours ago

    I basically rewrote all of polybar using eww widgets because I didn’t like how polybar was too rigid in certain aspects.

    So lots of scripts handling audio control, dark/light mode, i3 workspace switching, media control, login session management, weather widgets calling external APIs, etc. It was a whole ecosystem of tools and widgets.

    I just recently bought a new computer with an AMD GPU so I’m finally running Hyprland, and now I’m using Waybar. But I might start a project to do it all again using Astal. Who knows. Or maybe Waybar will be able to suffice. We shall see.

  • mesa@piefed.social
    link
    fedilink
    arrow-up
    5
    ·
    20 hours ago

    Back over 10+ years ago on the original raspberry pi, I made a butler program. Every hour on top of the hour, it would use espeak to say what my schedule was, the current internet usage (there was max usage of 100gb) and a couple of other things. It worked really well for years.

  • neidu3@sh.itjust.worksM
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    22 hours ago

    I mostly write utilities/tools like this. Some examples from my ~/bin/ folder:

    • A script that turns caps lock off and numlock on, and remaps caps lock to compose. I have this run by cron every minute.
    • A script that saves the current buffer of my continously running screen recorder to a file. Bound to the Lenovo coilot key.
    • A half-finished script that downloads and installs the latest version of discord, as Discord and ants me to manually upgrade it every time I start it.

    Edit: OH, and on my work laptop I have a script named Fnkeyfuckery. The keyboard layout is annoying in that I have to choose between Function keys or have Home+End.
    I want my function keys AND I want home+end. Luckily I don’t need F11 and F12 very often, so I’swapped around those two with their alternate function. That way I have F1 through F10, Home and End by default, and if I hold Fn I can have F11 and F12 too. It runs on startup.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      17 hours ago

      script that saves the current buffer of my continously running screen recorder to a file

      Curious to know why you are continuously recording your screen. Must fill up your hard drives really quickly?

      • neidu3@sh.itjust.worksM
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        17 hours ago

        Why: I case I want to show something unplanned to someone. Freak accident in a game, for example.
        Disk: It’s only keeping the latest 30 minutes in a buffer. Saving basically means copying that buffer to a different file.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          43 minutes ago

          Ah, cool.

          Sounds kind of like the Nvidia tool for Windows.

          Speaking of which, as well as your use case, I found this tool a while ago that looks and does pretty much the same thing: “GPU Screen Recorder”, found on flathub via “com.dec05eba.gpu_screen_recorder”.

          I hope it comes to use for anyone!