home.social

#bashscript — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashscript, aggregated by home.social.

  1. [Edit: Solved!] I [had] a bizarre-ass #Bash #scripting problem. I'm at my wits' end.

    I have a script that scans a directory and picks a random file from it. This script works just fine if I invoke it manually, from the command line in a terminal window.

    But if I run it from the Linux Mint/Cinnamon menu (start menu, whatever), it hangs when it tries to list the files in the dir. Likewise when run from crontab (which is how I really want to run it most of the time). 🧵 1/4

    #LinuxHelp #BashScript

  2. One Open-source Project Daily

    shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

    https://github.com/kward/shunit2

    #1ospd #opensource #bash #bashscript

  3. "🎉 Bash script saves the day by replacing beads with markdown—because who needs simplicity when you can have #chaos in a terminal? 💥 Welcome to the future of task tracking: a glorious mess of command line confusion and dependency graphs that no one asked for. 🚀"
    github.com/wedow/ticket #BashScript #TaskTracking #CommandLine #Markdown #HackerNews #ngated

  4. "🎉 Bash script saves the day by replacing beads with markdown—because who needs simplicity when you can have #chaos in a terminal? 💥 Welcome to the future of task tracking: a glorious mess of command line confusion and dependency graphs that no one asked for. 🚀"
    github.com/wedow/ticket #BashScript #TaskTracking #CommandLine #Markdown #HackerNews #ngated

  5. "🎉 Bash script saves the day by replacing beads with markdown—because who needs simplicity when you can have #chaos in a terminal? 💥 Welcome to the future of task tracking: a glorious mess of command line confusion and dependency graphs that no one asked for. 🚀"
    github.com/wedow/ticket #BashScript #TaskTracking #CommandLine #Markdown #HackerNews #ngated

  6. "🎉 Bash script saves the day by replacing beads with markdown—because who needs simplicity when you can have #chaos in a terminal? 💥 Welcome to the future of task tracking: a glorious mess of command line confusion and dependency graphs that no one asked for. 🚀"
    github.com/wedow/ticket #BashScript #TaskTracking #CommandLine #Markdown #HackerNews #ngated

  7. Learn how to display Animated Christmas Tree in Terminal (2026). Merry Christmas and a Happy New Year 2026 to all.

    Full Blog Post Here: ostechnix.com/display-animated

    #Christmas #Newyear2026 #Bashscript #Linux

  8. Learn how workflow automation has evolved from simple Bash scripts to advanced AI-driven systems, boosting productivity and transforming operations.

    More details here: ostechnix.com/from-bash-script

    #AI #Automation #Bashscript

  9. Do you browse the web using Firefox on Linux? Maybe on a computer with limited RAM (like the one I've been using with only 4GB, which I will soon finally increase)?

    I wrote a little #BashScript that I call "weblast", which--each time it's run--kills Firefox web processes that hog at least 1% of RAM. It has been a great, simple tool for increasing performance by relieving pressure on my computer's virtual memory swapping system.

    Try it and see if it brings you relief, and maybe even some joy...

    #!/bin/bash
    # weblast - kill Firefox browser tab processes that use at least 1% of RAM
    # by John R. Carlsen; last updated 2025-08-13
    p=1
    plast=0
    while [ 1 ]; do
    p=`ps -A -eo pid,pcpu,pmem,stat,comm --sort -pcpu | grep "Web " |grep "[1-9]\." | head -c 7`
    if [ "$p" == "" ]; then break
    fi
    if [ $p -eq 0 ]; then break
    fi
    if [ $p -eq $plast ]; then continue
    fi
    pct=`ps -q $p -A -o pmem=`
    echo "killing process $p with $pct% RAM"
    kill $p
    plast=$p
    done

  10. 🤓 Ah yes, the timeless quest of a techie—deciphering which Large Language Model will best handle their existential "Write a bash script" crisis. 🚀 Because clearly, curing #latency is more important than AI's ability to solve complex math problems. 🙄
    darkcoding.net/software/person #techie #troubles #LargeLanguageModel #bashscript #AIissues #HackerNews #ngated

  11. 🤓 Ah yes, the timeless quest of a techie—deciphering which Large Language Model will best handle their existential "Write a bash script" crisis. 🚀 Because clearly, curing #latency is more important than AI's ability to solve complex math problems. 🙄
    darkcoding.net/software/person #techie #troubles #LargeLanguageModel #bashscript #AIissues #HackerNews #ngated

  12. 🤓 Ah yes, the timeless quest of a techie—deciphering which Large Language Model will best handle their existential "Write a bash script" crisis. 🚀 Because clearly, curing #latency is more important than AI's ability to solve complex math problems. 🙄
    darkcoding.net/software/person #techie #troubles #LargeLanguageModel #bashscript #AIissues #HackerNews #ngated

  13. I got my #DDev new project bash script to create a default #Backdrop project. I think I did it alright, but I also KNOW this could be done more efficiently.

    I just don't know how yet.

    #BashScript

  14. 100 days of code BASH edition

    💻 Day 4 created my own system variable, made persistent within the .bashrc file.

    [export hoy="$((date +"%H") | awk '{if ($1 < 12) print "morning"; else if ($1 >= 12 && 1 < 17) print "afternoon"; else if ($1 >= 17 && $1 < 20) print "evening"; else print "night";}')"] (OpenAI GPT-3 script with few corrections) Displays the time of day in morning/afternoon/evening/and night format!

    #BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #bashrc

  15. 100 days of code BASH edition! :linux:

    Day 3, expanding on the previous script adding more statements to display more system variables dealing with time formats and calendars.

    #BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #TimeZones

  16. 100 days of code - BASH edition!

    Day 2, using what I got from Open AI GTP-3, I expanded the script and made a few other statements to display additional system variables.

    #BASH #Linux #Kali #WSLg #100DasyOfCode #OpenAi #GTP3 #BashScript

  17. Bash scripting right? Can't live with it, can't live without it!

    One of the things I never paid attention to was learning bash scripting. Maybe, it is because I work mostly in the Windows environment. Linux is not a required skill where I work but does come in handy when trying out things. Most of my Linux work has been done through a GUI and rarely use the command line for anything.

    #Bash #BashScript #Linux #Ubuntu #Kali #Windows #WSLg #WSL

  18. 🚀 Behold: a "revolutionary" Bash script heroically squeezing an SDK into 250 lines. Because, clearly, who needs robust languages when you can wrangle server logic with the elegance of a raccoon in a trash can? 🎩✨
    github.com/muthuishere/mcp-ser #BashScript #SDKs #CodingHumor #DevLife #TechInnovation #HackerNews #ngated

  19. Morning project a success!!!
    Using an old webcam plugged into my , wrote a script to have grab a frame every minute and upload it to a server. Nice and easy!

  20. "I love you #bash"

    "You love me because you can #loop through #multiDimensional arrays of data easily, right".

    *empty stares*

    "I can do 2D #arrays, right?

    *stares continue*

    "Ouch this #python bit me, call an ambulance"

    "I would but its not clear which telephone numbers correspond with a hospital."

    #funny #programmingHumor #skit #bashScript

  21. In today's thrilling installment of "Techies Solve Non-Issues," someone decided that what the world really needed was a bash script to block commands 🤔. Because clearly, the most pressing #cybersecurity concern is stopping ourselves from using our own keyboards 😆.
    github.com/alex-moon/ban #TechHumor #BashScript #KeyboardWarriors #ProblemSolving #HackerNews #ngated

  22. #Projects
    #DDev
    #BashScript

    So I started trying to work on that bash script I was building to generate new DDev projects.

    I am basing its first build off the CMS Quickstart guide on DDev's site. My first focus was #Drupal as that's my preferred option.

    But with all the versions and options I am pondering how to design this.

    Will keep you posted. I will also be posting this to the Hybridized Concepts site.

  23. Timelapsing using only screenshots was getting heavy in term of #storage space, so have added a new #script to compress the #timelapse using a magical technology called '#video'.

    so here you can find the commit!
    Gonna work on adapting the multi-screen one soon ^^

    oh, also rearranged the #ffmpeg config file!

    github.com/FraYoshi/fura-utils
    #bash #bashscript #linux #foss #floss #furaUtils

  24. In less than 18 hours, including a solid 12 hours (at least) of downtime, I have gone from concept to 90% functional prototype of a creative rPi project, thanks to aus.social allowing quick and easy downloads, jq, an obscure CUPS driver project, and an intimate knowledge of scripting.

    Feeling very accomplished.

    #BashScript #raspberrypi #hacking #json #scripting #art #linux

  25. #DDev
    #BashScript

    So I was working on a Bash Script to automate creating new DDev projects a few months ago.

    First script I ever tried to write myself, and incomplete as it is. Need to get back to it at some point, maybe post it and see what people think and how they may improve it.

    It's a thought.

  26. I think I just ran into a great example of how different tasks can require different energy levels that don't necessarily match their "difficulty".

    I recently got a "new to me" laptop and at first set it up with Fedora Workstation but quickly realized I much prefer Fedora Silverblue (not the point of this post, so I won't get into why here) and needed to re setup everything. I didn't want to click through a ton of apps in GNOME Software and install them all individually then organize them in the overview.

    So instead of doing all that manually I wrote a bash script from scratch to:

    - remove any rpm packages I didn't want
    - remove any flatpaks I didn't want
    - reinstall fedora flatpaks from flathub
    - remove the fedora flatpaks repo
    - layer the few rpm packages I wanted
    - install all the flatpak apps I wanted.
    - create custom folders in the overview
    - sort all the apps in those custom folders
    - pin my most used apps to the dock

    This felt like it required way less energy for me. Not because it was easier or faster. In fact I'm really rusty at bash scripting and I didn't even know how to organize the overview from the terminal, so I even had to learn something new and it probably took me way longer. But writing a little script was more fun for me and therefore didn't feel draining or overwhelming like the tedious task of clicking around for a couple hours would have.

    #Linux #Fedora #Silverblue #BashScript #ADHD

  27. fura-video-hypercompress.sh has been updated :ablobbass:

    It is a script to compress a #video to sub-mega sizes, which comes handy when used for previews or #licensing where storage used is #forever and #expensive (like S3).

    I personally use it to shasum and store into SafeCreative, where storage costs a lot, considering I'm gonna pay forever and more space = forever higher prices :ablobcatcoffee:

    In this update, video can be compressed even more, with a selectable frame rate.

    in case you are interested in SafeCreative, leave my 10% off (why not?) 9XZKH9

    github.com/FraYoshi/fura-utils

    #bash #bashscript #ffmpeg #video

  28. Playing around with OpenAI GPT-3 to write code and let me tell you, I don’t have to learn Bash scripting anymore!!!!

    💻 🤖 #OpenAi #GTP3 #Bash #BashScript #lazy

  29. Custom Weather Camera Feed With Software Tricks - With a gorgeous view of the Italian seaside, we’re not surprised [Danilo Larizza] had a couple IP ... more: hackaday.com/2020/07/23/custom #environmentalmonitor #softwarehacks #imagemagick #bashscript #weather #bme280 #python