home.social

#bash — Public Fediverse posts

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

  1. Controlling Your Music Queue More Flexibly With MPD

    I’ve been working with two programs that make interacting with your music using mpd even easier, regardless of source. First, I’ve updated some things with mpdq. It runs […]

    Archive: ia: https...

    #bash #mpd #programming #coding #music
    ideatrash.net/2026/05/controll

  2. #Linux #Bash

    Fritzbox liefert Daten (ohne Anmeldung)
    * Internet IP
    * Up- und Down- Stream in b/s
    * Uptime
    Ein Einzeiler fragt mit curl.
    gist.github.com/dewomser/d7e4a

  3. Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"

    Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
    Aktiviert erweiterte Globbing:
    Zuerst diesen Befehl in ZSH
    "setopt EXTENDED_GLOB"

    Danach kann man eine einzelne Datei ausschließen mit:

    "rm -rf ^miau.txt"

    Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!

    Quelle: gitgist.com/posts/shell-exclus

    Bitte, gern geschehen! :neocat_sign_nya:

    #zsh #bash

  4. Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"

    Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
    Aktiviert erweiterte Globbing:
    Zuerst diesen Befehl in ZSH
    "setopt EXTENDED_GLOB"

    Danach kann man eine einzelne Datei ausschließen mit:

    "rm -rf ^miau.txt"

    Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!

    Quelle: gitgist.com/posts/shell-exclus

    Bitte, gern geschehen! :neocat_sign_nya:

    #zsh #bash

  5. Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"

    Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
    Aktiviert erweiterte Globbing:
    Zuerst diesen Befehl in ZSH
    "setopt EXTENDED_GLOB"

    Danach kann man eine einzelne Datei ausschließen mit:

    "rm -rf ^miau.txt"

    Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!

    Quelle: gitgist.com/posts/shell-exclus

    Bitte, gern geschehen! :neocat_sign_nya:

    #zsh #bash

  6. Ich wollte gerade im Testcontainer aufräumen, von Bash gewohnt, um eine Datei auszuschließen ist ja bekanntlich "rm -rf !(miau.txt)"

    Nur funktioniert das nicht in ZSH. Da suchmaschint man sich blöd... Die Lösung ist simple:
    Aktiviert erweiterte Globbing:
    Zuerst diesen Befehl in ZSH
    "setopt EXTENDED_GLOB"

    Danach kann man eine einzelne Datei ausschließen mit:

    "rm -rf ^miau.txt"

    Um das permanent zu machen kann man natürlich den "setopt" zur .zshrc hinzufügen!

    Quelle: gitgist.com/posts/shell-exclus

    Bitte, gern geschehen! :neocat_sign_nya:

    #zsh #bash

  7. Calculate phi with bc and #bash

    #!/usr/bin/env bash
    a=0 b=1
    for((i=2;i<=23;i++));{
    c=$((a+b))
    printf "Fibonacci(%d) / Fibonacci(%d) = %.20f\n" $i $((i-1)) "$(bc -l<<<"$c/$b")"
    a=$b b=$c
    }

  8. Heartbeat-мониторинг cron-job'ов: dead-man-switch на FastAPI

    Обычный uptime-мониторинг проверяет, отвечает ли сервис на запросы. Cron-job ничего не отвечает — он запускается раз в N часов, делает работу и молча завершается. Если cron перестал запускаться (uptime daemon упал, машина в read-only mode после fsck, disk full) — обычный мониторинг этого не видит. Решение известно с 70-х — паттерн dead-man-switch (он же heartbeat). Я недавно делал heartbeat-эндпоинты для Valpero. Здесь разберу серверную часть на FastAPI + клиентский bash-pattern, и edge-кейсы которые их ломают. В конце готовый код, который можно адаптировать под свой стек.

    habr.com/ru/articles/1035624/

    #cron #heartbeat #deadmanswitch #monitoring #alerting #bash #FastAPI #Celery #devops #linux

  9. bash history trick illustrated

    !! to recover previous command

    $(!!) to capture output of previous command

    ^string^replacement to replace "string" from previous command by "replacement" - useful to correct typo

    #sysadmin
    #bash
    #linux

  10. I am documenting a repetitive process.

    Most importantly, so I have notes so I can manually do it again... but also considering writing a bash shell script to mostly automate.

    If I do that, it would be one of the longest and most ambitious shell scripts I've done. A little intimidating, but I think I'll be able to pull it off.

    Probably will save a lot of time later. And even if it doesn't, I will have learned quite a bit.

    #sysadmin #linux #bash
  11. TIL: `2>/dev/null` sends error messages into the void.

    #bash #linux

  12. Why the heck is the "default" Bash LSP written in Typescript and requires Node?!

    #programming #linux #bash

  13. Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
    I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
    But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.

    Motivating example:
    ./enter "$(pgrep forgejo)" forgejo admin user

    Should be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.

    paste.sr.ht/~raingloom/ca6b3eb

    cc: #theWorkshop

  14. Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
    I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
    But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.

    Motivating example:
    ./enter "$(pgrep forgejo)" forgejo admin user

    Should be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.

    paste.sr.ht/~raingloom/ca6b3eb

    cc: #theWorkshop

  15. Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
    I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
    But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.

    Motivating example:
    ./enter "$(pgrep forgejo)" forgejo admin user

    Should be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.

    paste.sr.ht/~raingloom/ca6b3eb

    cc: #theWorkshop

  16. Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
    I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
    But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.

    Motivating example:
    ./enter "$(pgrep forgejo)" forgejo admin user

    Should be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.

    paste.sr.ht/~raingloom/ca6b3eb

    cc: #theWorkshop

  17. Quick 'n' dirty #bash script for #NixOS admin tasks that should also be useful for #Guix .
    I'm pretty sure I'm not the first one to write something like this, but it was quicker to implement it than to find prior art.
    But if any fellow sysadmins/selfhosters know of a standard way to do this, I'd love to know more.

    Motivating example:
    ./enter "$(pgrep forgejo)" forgejo admin user

    Should be useful for one-off #Forgejo admin tasks without having to copy the settings manually and without having to edit your system config.

    paste.sr.ht/~raingloom/ca6b3eb

    cc: #theWorkshop

  18. Good mornin' everynyan.

    Ich bin dabei das addLogo
    #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅

  19. Good mornin' everynyan.

    Ich bin dabei das addLogo
    #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅

  20. Good mornin' everynyan.

    Ich bin dabei das addLogo
    #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅

  21. Good mornin' everynyan.

    Ich bin dabei das addLogo
    #Bash Script fertig zu bauen. Hoffentlich hilft es auch einigen anderen, die sowas easy im Terminal lösen wollen. Man könnte es ja noch erweitern oder umbauen, aber das Fundament nimmt euch einiges an Arbeit ab. 😅

  22. #Linux #Bash
    Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
    Die letzten 100 Posts . Wer /was /wieviele …
    gist.github.com/dewomser/3d131

  23. #Linux #Bash
    Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
    Die letzten 100 Posts . Wer /was /wieviele …
    gist.github.com/dewomser/3d131

  24. #Linux #Bash
    Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
    Die letzten 100 Posts . Wer /was /wieviele …
    gist.github.com/dewomser/3d131

  25. #Linux #Bash
    Ausführliche Mastodon-Statistik mit mastotool am Beispiel @dewomser
    Die letzten 100 Posts . Wer /was /wieviele …
    gist.github.com/dewomser/3d131

  26. Hi folks! ✌️

    Here's a little update of the script that will help you to set up Devuan (devuan.org/) for your first time 👉 codeberg.org/xolatgames/setup-

    I've colorize this, and add a checking if you're root, for an user doesn't confuses why some moments won't works 😅

    Have a good day! 😉👋

    #devuan #devuan6 #devuan6excalibur #linux #script #scripts #bash #debian #debian13 #debian13trixie #codeberg #setup

  27. Hi folks! ✌️

    Here's a little update of the script that will help you to set up Devuan (devuan.org/) for your first time 👉 codeberg.org/xolatgames/setup-

    I've colorize this, and add a checking if you're root, for an user doesn't confuses why some moments won't works 😅

    Have a good day! 😉👋

    #devuan #devuan6 #devuan6excalibur #linux #script #scripts #bash #debian #debian13 #debian13trixie #codeberg #setup

  28. Meteorology Kwamalasemutu

    Current weather in Kwamalasemutu SR SA with infinite power of wttr.in & the grace of lolcat(6) 🏳️‍🌈 wttr curl(1) & {ba{c{k{z{fi}}}}}sh

    Background photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens

    log

    $ curl --verbose wttr.in/kwamalasemutu|lolcat
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.

    • IPv6: (none)
    • IPv4: 5.9.243.187
    • Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
    • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
    • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
    • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

    `/"".-. Light rain shower
    ,_( ). +29(32) °C
    /(() ← 6 km/h
    ‘ ‘ ‘ ‘ 10 km
    ‘ ‘ ‘ ‘ 1.2 mm

    Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

    Note:

    Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
    Watch the LOG!

    API

    wttr.in

    en.wikipedia.org/wiki/Bash_(Un

    gnu.org

    directory.fsf.org/wiki/Bash

    curl.se/

    github.com/busyloop/lolcat

    Z

    #Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

  29. Meteorology Kwamalasemutu

    Current weather in Kwamalasemutu SR SA with infinite power of wttr.in & the grace of lolcat(6) 🏳️‍🌈 wttr curl(1) & {ba{c{k{z{fi}}}}}sh

    Background photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens

    log

    $ curl --verbose wttr.in/kwamalasemutu|lolcat
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.

    • IPv6: (none)
    • IPv4: 5.9.243.187
    • Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
    • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
    • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
    • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

    `/"".-. Light rain shower
    ,_( ). +29(32) °C
    /(() ← 6 km/h
    ‘ ‘ ‘ ‘ 10 km
    ‘ ‘ ‘ ‘ 1.2 mm

    Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

    Note:

    Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
    Watch the LOG!

    API

    wttr.in

    en.wikipedia.org/wiki/Bash_(Un

    gnu.org

    directory.fsf.org/wiki/Bash

    curl.se/

    github.com/busyloop/lolcat

    Z

    #Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

  30. Meteorology Kwamalasemutu

    Current weather in Kwamalasemutu SR SA with infinite power of wttr.in & the grace of lolcat(6) 🏳️‍🌈 wttr curl(1) & {ba{c{k{z{fi}}}}}sh

    Background photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens

    log

    $ curl --verbose wttr.in/kwamalasemutu|lolcat
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.

    • IPv6: (none)
    • IPv4: 5.9.243.187
    • Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
    • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
    • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
    • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

    `/"".-. Light rain shower
    ,_( ). +29(32) °C
    /(() ← 6 km/h
    ‘ ‘ ‘ ‘ 10 km
    ‘ ‘ ‘ ‘ 1.2 mm

    Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

    Note:

    Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
    Watch the LOG!

    API

    wttr.in

    en.wikipedia.org/wiki/Bash_(Un

    gnu.org

    directory.fsf.org/wiki/Bash

    curl.se/

    github.com/busyloop/lolcat

    Z

    #Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

  31. Meteorology Kwamalasemutu

    Current weather in Kwamalasemutu SR SA with infinite power of wttr.in & the grace of lolcat(6) 🏳️‍🌈 wttr curl(1) & {ba{c{k{z{fi}}}}}sh

    Background photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens

    log

    $ curl --verbose wttr.in/kwamalasemutu|lolcat
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.

    • IPv6: (none)
    • IPv4: 5.9.243.187
    • Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
    • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
    • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
    • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

    `/"".-. Light rain shower
    ,_( ). +29(32) °C
    /(() ← 6 km/h
    ‘ ‘ ‘ ‘ 10 km
    ‘ ‘ ‘ ‘ 1.2 mm

    Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

    Note:

    Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
    Watch the LOG!

    API

    wttr.in

    en.wikipedia.org/wiki/Bash_(Un

    gnu.org

    directory.fsf.org/wiki/Bash

    curl.se/

    github.com/busyloop/lolcat

    Z

    #Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

  32. Meteorology Kwamalasemutu

    Current weather in Kwamalasemutu SR SA with infinite power of wttr.in & the grace of lolcat(6) 🏳️‍🌈 wttr curl(1) & {ba{c{k{z{fi}}}}}sh

    Background photograph is a Clouds in FL scene composed with CIRC_POL FL and UV filters stacked using a Nikon zoom lens

    log

    $ curl --verbose wttr.in/kwamalasemutu|lolcat
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host wttr.in:80 was resolved.

    • IPv6: (none)
    • IPv4: 5.9.243.187
    • Trying 5.9.243.187:80...0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to wttr.in (5.9.243.187) port 80
    • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
    • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Cache-Control: public, max-age=600< Content-Type: text/plain; charset=utf-8< Date: Sat, 23 May 2026 15:11:48 GMT< Transfer-Encoding: chunked< { [2583 bytes data]100 9019 0 9019 0 0 7744 0 --:--:-- 0:00:01 --:--:-- 7748
    • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

    `/"".-. Light rain shower
    ,_( ). +29(32) °C
    /(() ← 6 km/h
    ‘ ‘ ‘ ‘ 10 km
    ‘ ‘ ‘ ‘ 1.2 mm

    Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

    Note:

    Remember to repeat the request with an interval of 12 then 54 secs when the server sends and empty response to curl
    Watch the LOG!

    API

    wttr.in

    en.wikipedia.org/wiki/Bash_(Un

    gnu.org

    directory.fsf.org/wiki/Bash

    curl.se/

    github.com/busyloop/lolcat

    Z

    #Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

  33. RE: mastodon.social/@h4ckernews/11

    I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.

    This shell brings the best of both worlds.

    Using ruby to do complex shell commands... Gotta try it out!

  34. RE: mastodon.social/@h4ckernews/11

    I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.

    This shell brings the best of both worlds.

    Using ruby to do complex shell commands... Gotta try it out!

  35. RE: mastodon.social/@h4ckernews/11

    I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.

    This shell brings the best of both worlds.

    Using ruby to do complex shell commands... Gotta try it out!

  36. RE: mastodon.social/@h4ckernews/11

    I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.

    This shell brings the best of both worlds.

    Using ruby to do complex shell commands... Gotta try it out!

  37. RE: mastodon.social/@h4ckernews/11

    I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.

    This shell brings the best of both worlds.

    Using ruby to do complex shell commands... Gotta try it out!

  38. #Linux #Bash
    Eieruhr mit Sprachausgabe.
    6 verschiedene Versionen in der Auswahl
    Alles kurze Einzeiler !

    for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef"

    gist.github.com/dewomser/1a91e

  39. #Linux #Bash
    Eieruhr mit Sprachausgabe.
    6 verschiedene Versionen in der Auswahl
    Alles kurze Einzeiler !

    for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef"

    gist.github.com/dewomser/1a91e