home.social

#bashscripts — Public Fediverse posts

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

  1. Woah, careful with Bash, even with Strict Mode.

  2. Claude Code came in clutch yet again for me. I needed a local maintenance script that would do three things: 1. Backup Tuwunel's database on a regular schedule. 2. Purge remote media after 30 days. 3. Purge local media after 60 days. The thing I discovered about Tuwunel is that it's Docker container essentially is just one Rust-based binary, and if it's running, you can't invoke it using traditional Docker commands as it would essentially try to run a second instance of Tuwunel. That causes a clash with Tuwunel's database, which essentially is locked by the first instance while running. Claude's solution: It helped me write a bash script that logs into the server as my admin account and uses the Matrix API to send commands to my server's admin room that invokes the maintenance tasks needed to keep the database backed up and purges media on the schedule I set. So now I have a cron job that fires on a schedule that runs the script, it does its thing and Tuwunel stays happy, healthy and backed up without consuming all the storage space on the VPS it runs on. #Claude #AI #Tuwunel #Matrix #BashScripts #Maintenance

  3. Claude Code came in clutch yet again for me. I needed a local maintenance script that would do three things: 1. Backup Tuwunel's database on a regular schedule. 2. Purge remote media after 30 days. 3. Purge local media after 60 days. The thing I discovered about Tuwunel is that it's Docker container essentially is just one Rust-based binary, and if it's running, you can't invoke it using traditional Docker commands as it would essentially try to run a second instance of Tuwunel. That causes a clash with Tuwunel's database, which essentially is locked by the first instance while running. Claude's solution: It helped me write a bash script that logs into the server as my admin account and uses the Matrix API to send commands to my server's admin room that invokes the maintenance tasks needed to keep the database backed up and purges media on the schedule I set. So now I have a cron job that fires on a schedule that runs the script, it does its thing and Tuwunel stays happy, healthy and backed up without consuming all the storage space on the VPS it runs on. #Claude #AI #Tuwunel #Matrix #BashScripts #Maintenance

  4. Claude Code came in clutch yet again for me. I needed a local maintenance script that would do three things: 1. Backup Tuwunel's database on a regular schedule. 2. Purge remote media after 30 days. 3. Purge local media after 60 days. The thing I discovered about Tuwunel is that it's Docker container essentially is just one Rust-based binary, and if it's running, you can't invoke it using traditional Docker commands as it would essentially try to run a second instance of Tuwunel. That causes a clash with Tuwunel's database, which essentially is locked by the first instance while running. Claude's solution: It helped me write a bash script that logs into the server as my admin account and uses the Matrix API to send commands to my server's admin room that invokes the maintenance tasks needed to keep the database backed up and purges media on the schedule I set. So now I have a cron job that fires on a schedule that runs the script, it does its thing and Tuwunel stays happy, healthy and backed up without consuming all the storage space on the VPS it runs on. #Claude #AI #Tuwunel #Matrix #BashScripts #Maintenance

  5. Claude Code came in clutch yet again for me. I needed a local maintenance script that would do three things: 1. Backup Tuwunel's database on a regular schedule. 2. Purge remote media after 30 days. 3. Purge local media after 60 days. The thing I discovered about Tuwunel is that it's Docker container essentially is just one Rust-based binary, and if it's running, you can't invoke it using traditional Docker commands as it would essentially try to run a second instance of Tuwunel. That causes a clash with Tuwunel's database, which essentially is locked by the first instance while running. Claude's solution: It helped me write a bash script that logs into the server as my admin account and uses the Matrix API to send commands to my server's admin room that invokes the maintenance tasks needed to keep the database backed up and purges media on the schedule I set. So now I have a cron job that fires on a schedule that runs the script, it does its thing and Tuwunel stays happy, healthy and backed up without consuming all the storage space on the VPS it runs on. #Claude #AI #Tuwunel #Matrix #BashScripts #Maintenance

  6. Claude Code came in clutch yet again for me. I needed a local maintenance script that would do three things: 1. Backup Tuwunel's database on a regular schedule. 2. Purge remote media after 30 days. 3. Purge local media after 60 days. The thing I discovered about Tuwunel is that it's Docker container essentially is just one Rust-based binary, and if it's running, you can't invoke it using traditional Docker commands as it would essentially try to run a second instance of Tuwunel. That causes a clash with Tuwunel's database, which essentially is locked by the first instance while running. Claude's solution: It helped me write a bash script that logs into the server as my admin account and uses the Matrix API to send commands to my server's admin room that invokes the maintenance tasks needed to keep the database backed up and purges media on the schedule I set. So now I have a cron job that fires on a schedule that runs the script, it does its thing and Tuwunel stays happy, healthy and backed up without consuming all the storage space on the VPS it runs on. #Claude #AI #Tuwunel #Matrix #BashScripts #Maintenance

  7. Behold, the riveting tale of a coder's quest to turn taxes into a tech circus! 🤹‍♂️ Armed with Claude CLI and #Obsidian, they bravely transform a routine task into a convoluted saga of folder structures and bash scripts. Who knew filing taxes could be so 🎉 exciting?
    mrafayaleem.com/blog/improving #coderquest #techcircus #filingtaxes #bashscripts #HackerNews #ngated

  8. Behold, the riveting tale of a coder's quest to turn taxes into a tech circus! 🤹‍♂️ Armed with Claude CLI and #Obsidian, they bravely transform a routine task into a convoluted saga of folder structures and bash scripts. Who knew filing taxes could be so 🎉 exciting?
    mrafayaleem.com/blog/improving #coderquest #techcircus #filingtaxes #bashscripts #HackerNews #ngated

  9. Behold, the riveting tale of a coder's quest to turn taxes into a tech circus! 🤹‍♂️ Armed with Claude CLI and #Obsidian, they bravely transform a routine task into a convoluted saga of folder structures and bash scripts. Who knew filing taxes could be so 🎉 exciting?
    mrafayaleem.com/blog/improving #coderquest #techcircus #filingtaxes #bashscripts #HackerNews #ngated

  10. Behold, the riveting tale of a coder's quest to turn taxes into a tech circus! 🤹‍♂️ Armed with Claude CLI and #Obsidian, they bravely transform a routine task into a convoluted saga of folder structures and bash scripts. Who knew filing taxes could be so 🎉 exciting?
    mrafayaleem.com/blog/improving #coderquest #techcircus #filingtaxes #bashscripts #HackerNews #ngated

  11. Behold, the riveting tale of a coder's quest to turn taxes into a tech circus! 🤹‍♂️ Armed with Claude CLI and #Obsidian, they bravely transform a routine task into a convoluted saga of folder structures and bash scripts. Who knew filing taxes could be so 🎉 exciting?
    mrafayaleem.com/blog/improving #coderquest #techcircus #filingtaxes #bashscripts #HackerNews #ngated

  12. ⚙️ "just-bash: Bash for Agents" boldly reimagines the wheel by slapping AI on a terminal and calling it revolutionary. Because who hasn't dreamt of making Bash scripts more complex and unpredictable? 🤖✨ It's the tech equivalent of putting a mustache on a Mona Lisa and calling it modern art. 🖼️
    github.com/vercel-labs/just-ba #justbash #AIterminal #techinnovation #Bashscripts #modernart #HackerNews #ngated

  13. 🚀🔥 Oh joy, another tool claiming to simplify #Docker with a sprinkle of #microVM magic! Bottlefire: for those who think turning container images into cumbersome, zero-dependency Linux executables is the pinnacle of #innovation. 🐢⚙️ Because nothing screams 'progress' like shuffling dependencies into convoluted bash scripts.
    bottlefire.dev/ #Simplification #ContainerTools #BashScripts #HackerNews #ngated

  14. 🚨 Alert: Earth-shattering news! 🚨 Apparently, your Bash scripts are a ticking time bomb unless you start with the sacred "set -euo pipefail" chant. 🤯 Prepare for a life of peace and tranquility, free from the horrors of debugging! Just ignore the bit where it makes everything else a nightmare... but don't worry, there are "simple" workarounds. 🙄✨
    redsymbol.net/articles/unoffic #BashScripts #Debugging #SetEuoPipefail #CodingTips #TechNews #HackerNews #ngated

  15. 🥱 Wow, someone just discovered "timeout" in Bash scripts! 🎉 Next, they'll uncover the thrilling world of semicolons and parentheses. 🚀 Because nothing says cutting-edge innovation like learning about basic shell scripting, right? 🙄
    heitorpb.github.io/bla/timeout/ #BashScripts #ShellScripting #TechInnovation #CodingHumor #ProgrammingBasics #HackerNews #ngated