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

  • jordanlund@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    9 days 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.

      • jordanlund@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        9 days ago

        Hard to say, it’s been years since I’ve done a full inventory and I have books signed by people who have since passed away. :(

        Working on a current inventory now.

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    9 days 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.

  • baines@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 days ago

    i wrote a simple program to wiggle my mouse

    you can guess why

    it was a rip off from a coworker’s program

  • i_ben_fine@midwest.social
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    A few years back, I made a python program that searched free-for-commercial-use Google Images and auto-adjusted them to fit Amazon Merch shirts and uploaded them to Amazon. This was, of course, a violation of their terms of service.

  • stoy@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    9 days 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.

  • HakunaHafada@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    I use Redshift to change the color temp on my monitors.

    I have cron jobs at 1930 to change to night mode, and 0600 to revert back to day mode.

    I’m very certain the temp change can be scheduled within Redshift itself, but I’d have to leave the terminal open, figure out the documentation, arguments, etc. Creating the cron jobs was easier for me. 🤷

  • datavoid@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 days 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…

  • thespcicifcocean@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    Once I wrote a PowerShell script to change all the public affairs officers’ job titles to pubic affairs officers on our exchange server. I never ran it, but I could have.

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

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

  • Typewar@infosec.pub
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 days 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

  • Cousin Mose@lemmy.hogru.ch
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 days ago

    I haven’t written many utility scripts/programs in a while but my apartment is fully automated with temperature, humidity, light, presence and door sensors.

    We like to keep our screen doors open when the weather is nice so I have things like fans, heating, air conditioning automated but set to turn off when a door(s) is open.

    The outdoor lights are also automated but I have them turn green/blue when it’s foggy or rainy and they turn red when there is aircraft above.

    Before smartphones started using random MAC addresses on WiFi I also automated some things depending which guests we had over, but I haven’t done that in a long time.

  • pmk@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 days 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.

  • jBoi@szmer.info
    link
    fedilink
    arrow-up
    1
    ·
    9 days 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.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    1
    ·
    9 days ago

    One I miss the most is one I had on my Nokia N900. It would take a photo with both cameras, aquire the current GPS position and upload all those things to my server. Then it would check for a file on my server and if it existed would create an SSH tunnel, allowing me to SSH into the phone from my server.

    It was supposed to be an anti theft measure. Never needed it. Was still cool that the phone had this possibility.