Holy crap! That 50 line #ShellScript, which includes child process management and signal handling, not only works, but #shellcheck only whines about two things, both of which I know don't matter.

Shell script that's using curl and jq to get the list of channels from @somafm, fzf to allow you to select one, and mpv to play it.

https://codeberg.org/scy/dotfiles/src/branch/main/bin/soma

#SomaFM #mpv #fzf #jq #shellscript #dotfiles #webradio

Ok, some of you are doing too many requests to wttr.in, lol. So here is a way I do it: a singlerequest every time my PC boots. No need for us to do it every time we open a shell, just save the report to a file & read from it. #Weather #shellscript #Bash #Zsh #nomxd #Tech-talk🐾

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

Script where you think. Emacs + shell = zero-distance hacking. No tabs, no noise. Just flow.
#Emacs #Linux #ShellScript #Productivity #DeadSwitch

http://tomsitcafe.com/2025/05/11/shell-scripts-in-emacs-the-cyber-ghosts-shortcut-to-flow/

Shell Scripts in Emacs: The Cyber Ghost’s Shortcut to Flow

DeadSwitch | The Cyber Ghost”In silence, we rise. In the switch, we fade.” Forget tabbing between windows. Forget terminal juggling. We script where we think – inside the mind of …

Tom's IT Cafe
Hola a todos. Si eres de aquellos que ya usan #Vim o quieren aprender a usarlo y necesitan algo rapido y funcional, te dejo aquí un #ShellScript para que te puedas descargar todo sin muchas vueltas. El #script está enfocado en usuarios de #Debian. Puedes consultar el código en mi repositorio de codeberg :)
Comando -> curl -fsS https://codeberg.org/manjo/VimUltimateShellScript/raw/branch/main/UltimateVim.sh | sh

Cada día más cerca de reemplazar a Excel 🥹

#ShellScript #SeniorDeveloper

You don’t know how many personalities the #AWS #CLI has until you double-check your #disasterrecovery vendor’s work during a failover test. But hey, at least now I have a pile of #shellscript that gives me strong signals.

That’s all well and good for the #infrastructure, but we may have impeded ourselves when we gave the unproven disaster recovery environment production-like (i.e. restrictive) permissions. Diagnosing why the workloads aren’t starting up properly is unnecessarily difficult.

Bash variables: A subshell cannot write back variables to its parent shell.

I want to get a variable AA back anyway and tried:
1. in the subshell: declare -p AA >./tmp/somefile
2. in the parent shell: source ./tmp/somefile

Can this fail? Well (2) is run in a function, so the 'declare ...' we source only declares a local variable. As soon as leaving the function, the AA is gone.

There does not seem to be a version of 'declare -p' which adds "-g" to the output.

#bash #programming #shellscript

【CloudFlare】動的IPアドレスをAPIで自動更新する。DDNS #ShellScript - Qiita

https://qiita.com/napspans/items/455103748f3a0dd7ee18

【CloudFlare】動的IPアドレスをAPIで自動更新する。DDNS - Qiita

前回Google DomainsからCloudFlareにドメインとDNSを移管する記事を書きました。https://qiita.com/napspans/items/3e4030ea549482…

Qiita