#Bashscript

N-gated Hacker Newsngate
2026-01-06

"🎉 Bash script saves the day by replacing beads with markdown—because who needs simplicity when you can have 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

2026-01-05

Một sinh viên Tây Ban Nha đã tạo script Bash tự động hóa cài đặt và cấu hình Pi-hole v6 trên Ubuntu. Script này còn tích hợp cài đặt Unbound, PADD và tự động thêm blocklist. Tác giả muốn chia sẻ dự án để nhận phản hồi từ cộng đồng.

#Pihole #Ubuntu #BashScript #Automation #SelfHosted #Project #PiholeV6 #ScriptBash #TựĐộngHóa #DựÁn #UbuntuServer

reddit.com/r/selfhosted/commen

2025-12-22

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

Torger Åge Sinnesdalstroka@snabelen.no
2025-12-12

Okay, I'm sure a lot of people already know about this one, but it's new to me. I just found out you can do one of these in your systemd service itself:

Environment=SOME_SILLY_NAME=%i

And then reference that specific variable from inside of that environment, instead of using whatever variable was already there anyway, that usually works even though it's not actually made for that.

The problem I've been running into is that X11 cares about $DISPLAY, and so usually if you're gonna reference %i from a script from within an X11 environment, you would use that and it would work; but then if you're on Wayland, that doesn't mean anything to Wayland itself, because it calls it $WAYLAND_DISPLAY instead; WHICH MEANS that if you're on a Wayland compositor to start with, but you're also running XWayland, then you have both variables set automatically.

I'm on Niri with xwayland-satellite, and so I have both (I never had $DISPLAY in Niri until after I installed xwayland-satellite). This is a huge problem because neither of those variables actually have anything to do with the systemd instance by design, and I can't just make one of them go away (without giving myself more problems). There is no variable that's ever set by default, that is specifically put there to refer to the exact same thing as %i does in the unit itself, that I know of.

Now I can just do this instead, and never have to worry about my stuff getting mixed up with my other stuff. 😀

#systemd #BashScript #Linux

Haskell/Rust/Bash/systemd is a good combination, right? :myGenuineReaction: :myGenuineReaction: :myGenuineReaction:

#Haskell #RustLang #BashScript #Systemd #Shitpost

2025-11-20

OK... Too much of my world runs on bashscript.

It's fine. It's a tool, I get it.

...

It's just... It's too much.

Also, stop using Go instead of bashscript.

#go #bash #bashscript #programming

I love you all.

2025-10-08

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

Schenkl | 🏳️‍🌈🦄schenklklopfer@chaos.social
2025-10-01

Zitat vom Kollegen: "Mir läuft es immer kalt den Rücken runter, wenn mir jemand sagt, dass der @schenklklopfer da ein #Bashscript geschrieben hat".

Ich finde ein höheres Lob gibt es nicht :))

John Carlsen 🇺🇸🇳🇱🇪🇺johnlogic@sfba.social
2025-09-19

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

N-gated Hacker Newsngate
2025-08-24

🤓 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 is more important than AI's ability to solve complex math problems. 🙄
darkcoding.net/software/person

Der CleverAdmin Blogblog@social.techniverse.net
2025-07-16

Subsonic Mediathek plötzlich leer? So behebst du’s!

Kennst du das Problem? Nach einem Mediensuchlauf in Subsonic ist plötzlich deine komplette Mediathek leer. Alle Songs, Alben und leere Playlists - einfach weg! Genau das ist mir passiert, nachdem ich meinen Subsonic-Server mit einer MySQL-Datenbank verbunden h...

cleveradmin.de/blog/2025/07/su
#Scripte #BashScript #cronjob #Fix #Mediathek #Medienverwaltung #Musikserver #mysql #OpenSource #Subsonic

N-gated Hacker Newsngate
2025-07-14

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 concern is stopping ourselves from using our own keyboards 😆.
github.com/alex-moon/ban

N-gated Hacker Newsngate
2025-05-30

🚀 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

2025-05-24

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

2025-05-22

... To answer myself with external help ...

Run a command using arguments that come from an array, 20171223,
unix.stackexchange.com/questio

... resolves the issue of lack of my knowledge. To go along with that ...

Add a new element to an array without specifying the index in Bash, 20091223,
stackoverflow.com/questions/19

So ...

#!env bash

declare -a opt
opt=( '-avi' '--stats' )

if [ -n "$RSYNC_DRY_RUN" ]
then
opt+=('-n')
fi

rsync "${opt[@]}" /etc/passwd /tmp/sekrits

#bash #bashScript

2025-05-21

… Alternatively, could the command, with its options & arguments, be assembled in an array & then be executed without converting the array to a string in #bash?

If “#!env bash” is the very first line, then see no point in being restricted to basic Bourne shell syntax.

#bashScript

2025-05-21

Is there any other way to break up a single string of combined options as individual options other than setting “$@“ (breaking up the string on white space), as in …

set -- $option_list
command $@ …

… ? The command is “rsync(1)” in this case if that matters.

An oddity I noticed in that script is that it uses “Bourne Again Shell”, #bash, but is not using array to collect, pass the options around. How would that be done there?

#sh #shellScript #bashScript #unix #Linux

Jürgenelbosso
2025-05-06

Sooo noch schnell ein gefixt

Francesco Yoshi Gobbo :linux:frayoshi@qoto.org
2025-04-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

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst