Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Ask Lemmy
  3. What are some "toy programs" you've created?

What are some "toy programs" you've created?

Scheduled Pinned Locked Moved Ask Lemmy
asklemmy
53 Posts 39 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N [email protected]

    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.

    V This user is from outside of this forum
    V This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #26

    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?

    N 1 Reply Last reply
    0
    • V [email protected]

      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?

      N This user is from outside of this forum
      N This user is from outside of this forum
      [email protected]
      wrote on last edited by [email protected]
      #27

      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.

      V 1 Reply Last reply
      0
      • C [email protected]

        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

        S This user is from outside of this forum
        S This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #28

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

        1 Reply Last reply
        1
        • C [email protected]

          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

          swab148@lemmy.dbzer0.comS This user is from outside of this forum
          swab148@lemmy.dbzer0.comS This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #29

          orphankiller, because pacman -Rns $(pacman -Qtdq) is too much to type

          1 Reply Last reply
          1
          • C [email protected]

            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

            typewar@infosec.pubT This user is from outside of this forum
            typewar@infosec.pubT This user is from outside of this forum
            [email protected]
            wrote on last edited by [email protected]
            #30

            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

            1 Reply Last reply
            1
            • C [email protected]

              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

              D This user is from outside of this forum
              D This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #31

              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...

              1 Reply Last reply
              1
              • N [email protected]

                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.

                V This user is from outside of this forum
                V This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #32

                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!

                N 1 Reply Last reply
                0
                • V [email protected]

                  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!

                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote on last edited by [email protected]
                  #33

                  I based my setup around Replay Magic ReplaySorcery. I'm sure there are other packages too.

                  V 1 Reply Last reply
                  0
                  • C [email protected]

                    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

                    L This user is from outside of this forum
                    L This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #34

                    I wrote a powershell script to rename and reorder about 1000 comic books based off a reading order I put in a csv file once

                    1 Reply Last reply
                    1
                    • jordanlund@lemmy.worldJ [email protected]

                      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.

                      mintiefresh@lemmy.caM This user is from outside of this forum
                      mintiefresh@lemmy.caM This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #35

                      Wow this is really cool. Thanks for sharing!

                      1 Reply Last reply
                      4
                      • N [email protected]

                        I based my setup around Replay Magic ReplaySorcery. I'm sure there are other packages too.

                        V This user is from outside of this forum
                        V This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #36

                        Replay Magic

                        Hmm. Trying to find that. Do you mean ReplaySourcery?

                        N 1 Reply Last reply
                        1
                        • C [email protected]

                          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

                          lime@feddit.nuL This user is from outside of this forum
                          lime@feddit.nuL This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #37

                          me and a few friends have a dumb chatbot we've been fiddling with for 15 years. started out on irc, moved platforms multiple times, and i'm currently porting it to matrix. it can do poetry, markov chains, tell you when the weekend starts, pull youtube videos, create email aliases, etc.

                          1 Reply Last reply
                          2
                          • C [email protected]

                            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

                            F This user is from outside of this forum
                            F This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #38

                            I have a python script that I run on my phone to scrape a few websites and return the current food trucks at my few local breweries with the times they’re there. It makes our once/twice a week dinner selections so much easier than having to manually visit 4 websites. Some sites have been updated, and I haven’t updated my script and I need to.

                            1 Reply Last reply
                            2
                            • V [email protected]

                              Replay Magic

                              Hmm. Trying to find that. Do you mean ReplaySourcery?

                              N This user is from outside of this forum
                              N This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #39

                              Derp, yes

                              V 1 Reply Last reply
                              0
                              • C [email protected]

                                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

                                I This user is from outside of this forum
                                I This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #40

                                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.

                                1 Reply Last reply
                                4
                                • C [email protected]

                                  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

                                  callyral@pawb.socialC This user is from outside of this forum
                                  callyral@pawb.socialC This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #41

                                  a backup script i keep on my flash drive. when i wanna backup my files i just run the script and it copies the folders i want to back up

                                  1 Reply Last reply
                                  0
                                  • C [email protected]

                                    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

                                    B This user is from outside of this forum
                                    B This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #42

                                    I recently wrote a little library that adds some neat little features to enums in Rust. It's tiny, does one thing, and does it pretty well, I think.

                                    1 Reply Last reply
                                    1
                                    • C [email protected]

                                      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

                                      H This user is from outside of this forum
                                      H This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #43

                                      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. 🤷

                                      A 1 Reply Last reply
                                      1
                                      • B [email protected]

                                        i wrote a simple program to wiggle my mouse

                                        you can guess why

                                        it was a rip off from a coworker’s program

                                        L This user is from outside of this forum
                                        L This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #44

                                        I did that too with a basic powershell loop hitting F15 (non existent keyboard key that's not mapped to anything)

                                        1 Reply Last reply
                                        0
                                        • C [email protected]

                                          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

                                          T This user is from outside of this forum
                                          T This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #45

                                          I wrote a knights and knaves puzzle generator. I enjoyed making the program more than actually solving the puzzles though

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups