veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

293
active users

#shellscripting

0 posts0 participants0 posts today

Shell two-liner to watch your phone battery via KDE Connect while charging (or discharging):

alias kcbatt='qdbus6 org.kde.kdeconnect /modules/kdeconnect/devices/$(grep -Em1 "^\[[0-9a-f_]+\]" ~/.config/kdeconnect/trusted_devices |tr -dc 0-9a-f_)/battery org.kde.kdeconnect.device.battery.charge'

ob=0; while b=$(kcbatt); do if ((ob!=b)); then date "+%H:%M $b%%"; ob="$b"; fi; sleep 5; done

Streams, Pipes und Umleitungen.

Diese Konzepte bilden das Rückgrat der Unix-Philosophie „Do one thing and do it well“ und ermöglichen es, einfache Programme zu komplexen, leistungsstarken Lösungen zu kombinieren. Die Fähigkeit, Datenströme zu verstehen und zu manipulieren, unterscheidet einen kompetenten Linux-Administrator von einem Anfänger und ist essenziell für effiziente Systemverwaltung.

admindocs.de/lpic-1-serie/lpic

Admin:Docs · LPIC-1: Streams, Pipes und Umleitungen - Admin:Docs
More from Mărcziem ™

#Poll: Curious about people's attitudes towards shell scripting.

Two part question:

  1. Are you a DEVeloper (or working in a development-heavy role), OTHER-IT worker (such as a sysadmin, architect, anything in a non-development-heavy role), or NON-IT (accountant, doctor, whatever)
  2. Do you HATE shell scripting, are you INDIFferent towards (or ignorant of) shell scripting, or do you LOVE it?

Liebe Folglinge,

ich suche leider noch immer nach einem neuen Job als #iOS und/oder #macOS Entwickler. Ich spreche #ObjectiveC, #Swift (auch Server-Side) und #SwiftUI und nutze die ganzen Tools drumherum (#Xcode, #Git, #GitHub, #GitHubActions, #ShellScripting etc.). Ich bringe 30 Jahre Berufserfahrung als Software-Entwickler mit, davon knapp 20 im #Apple Ökosystem.

Am Idealsten waere eine #Festanstellung zu 100% remote. Sollte es im Raum #Bregenz oder #Dornbirn etwas geben, dann auch gerne vor Ort.

Ich danke euch fuers Teilen. 🙏🏻
:boost_ok:

LinkedIn: linkedin.com/in/phranck/
Xing: xing.com/profile/Frank_Gregor0

The more #sh scripting I do, the more I love it and wondering why I didn't learn it earlier. So for #wakegp now I have done this to have 256 runs for different values of deletion_mutation_rate and deletions_per_mutation:

➜  runs5 git:(main) for i in {0..255}; do 
for> for size in nanod minid microd halfd thirdd majord; do
for for> for r in 1 2 4 8 16; do
for for for> w_run p4_"$size"_"$r" $i;
for for for> done
for for> done
for> done

w_run itself is a function I defined in my .zshrc

But of course, the syntax is hard. And it's not as easy to learn as something like Python. I wonder if #unixlike operating systems such as #Linux and #BSD would consider quitting the current sh in favor of something new designed from scratch.

Last time I remember, in the list of projects #NLnet had founded, there was a niche new shell invented for unix like systems. I'm gonna check it out. Also #OpenBSD people have something for themselves.

Edit: I had forgotten to add echo -n "$i "; date +%T

#FreeBSD#tech#geek

New #blog post: Gathering Hashtags from the Fediverse

https://rldane.space/gathering-hashtags-from-the-fediverse.html

282 words (2233 counting the hashtags, but that's just silly)

cc: my wonderful #chorus: @joel @dm @sotolf @thedoctor @pixx @twizzay @orbitalmartian @adamsdesk @krafter @roguefoam @clayton @giantspacesquid

(I will happily add/remove you from the chorus upon request! :)

#100DaysToOffload #27

rldane.spaceGathering Hashtags from the Fediverse

Apropos an ongoing project, looking at sed, and realising:

  • It can execute external commands (e)
  • It can read in entire files at a given address within the input stream (r).
  • It can read in specified external files on a line-by-line basis at a specified address within the input stream (R).

I've only been using sed for, oh, 40 years.

gnu.org/software/sed/manual/se

www.gnu.orgsed, a stream editorsed, a stream editor

Je viens d'arriver à écrire un script shell en une ligne de awk pour un projet Kirby bilingue où je dois formater des gros fichiers .txt exportés depuis un tableau de traduction sous forme de tableau PHP indentés correctement, et ça me rend heureux :

`awk -F$' \t*' '{gsub(/[ \t]+$/,"",$1); print " \""$1 "\" => \"" $2 "\","}' input.txt`

Alors que c’est pas fou hein en soi, mais c’est tellement satisfaisant quand ça marche !