#Linux #Bash #Mastodon
List all mastodon user who contains "bash" in name or address . A Bash 1-liner
https://gist.github.com/dewomser/279a1fa95dff18b66cf8ff7d255508e8

#Linux #Bash #Mastodon
List all mastodon user who contains "bash" in name or address . A Bash 1-liner
https://gist.github.com/dewomser/279a1fa95dff18b66cf8ff7d255508e8
More tech notes to myself
A very brief introduction to the #Readline library, customizing the #Bash shell prompt with mode indicators, and the vi editing mode.
Customizing the Bash command prompt for vi editing mode
https://suburbanalities.blogspot.com/2025/04/customizing-bash-command-prompt-for-vi.html
It's super annoying that #macOS has much, much fewer customization options than #KDE Plasma. Even a simple option like enabling wrapping around the virtual desks ("spaces") is not available, and the only way to enable that is to pay for a third-party app.
CLI is a better world. I installed the latest version of #Bash via #Homebrew. Now I can use all my Bash scripts.
Typical example of my bash history early in the morning at work:
```
echo $(( 177/251 ))
echo $(( 177//251 ))
echo $(( 177.0/251.0 ))
echo "177/251" | bc
bc 177/251
bc "177/251"
bc <( echo 177/251)
man bc
bc
echo "177.0 / 251.0" | bc
echo "177.0 * 251.0" | bc
echo "scale=3; 177.0/251.0" | bc
echo "scale=6; 177.0/251.0" | bc
echo "177/251" | bc -l
man bc
```
It's possible you've not heard of #boxyBSD
I was lucky to get a TIL moment when @stefano boosted it's existence into my feed.
However you should know about it, learn something about the user perspective from proxmox in the process, while working with a boxyBSD VM.
Here are some nice screencaps of the boxyBSD site so you can ask nicely for a VM and learn to play with one of the *BSD flavours from a distance.
I'm sure you can duckduckgo the address of boxyBSD when you analyze the screencaps, right?
#bash #proxyLB #freeBSD #boxyBSD #sh #zsh #ksh #csh #netBSD #openBSD #POSIX #proxmox #loadbalancer
I am a fan of #golang. I don't say it enough. My love of #python, #bash, and #BASIC, I wear on my sleeve, but among the many other languages I code in, I almost always appreciate an opportunity to use Go. It just clicked for me in a way rust never did.
(Obligatory disclaimer upon realizing the date that this is not an April Fools post.)
Linux : comment calculer une empreinte SHA-1, SHA-256 et SHA-512 ? https://www.it-connect.fr/calculer-une-empreinte-sha1-sous-linux/ #CommandesetSystème #Sécurité #Linux #Shell #Bash #CLI
It has arrived. proxyLB v1.1.0 the loadbalancer for proxmox clusters. Instead of telling you the features of this major version I invite you to read about it yourself, download proxyLB then play with it.
As with any great Open Source project, this has grown out of a necessity that @gyptazy has for his other amazing project boxyBSD, which just needs a versatile tool like this.
Now go and play.
#bash #proxyLB #freeBSD #boxyBSD #sh #zsh #ksh #csh #netBSD #openBSD #POSIX #proxmox #loadbalancer
Neat ...
#Bash's ctrl-o timesaver, 20241223,
by Thomas K,
https://octet-stream.net/b/tt/bash-ctrl-o-timesaver.html
... wonder if that is available in (plain) zsh via key bindings ...
#Linux #Bash
Mastodonstatistik für @dewomser . Die letzten 100 Toots. Ich benutze Mastotool.
Direkt bei Github Gist Hochladen in einem Rutsch
mastotool stats -r=100 |gist -f "mastotool_statistik.txt" -t "txt" -d "Mastodon Monatsstatistik für @dewomser. Kommando: mastotool stats -r=100"
https://gist.github.com/dewomser/2701f9154c693fe66966615cf564edb5
Hay there fediverse. Do we have any #bash #cron experts that can help me figure out how to fix things?
TL;DR - I need to reference the `$USER` variable as a parameter in a shell script that forms part of a dynamic path in a backup routine (the location varies by host so trying to automate as much as possible). Running the script as a logged in user over SSH works perfectly but when I add a crontab entry under the same user to run the same script is fails to parse the `$USER` part so the destination is incorrect and it throws an error.
I should also note that if I specify the path manually in the script it also works, but then it's a pain to automate across different hosts so I'm trying to avoid that if possible.
I now been going round in circles trying to figure this out for a couple of days so it's time to ask for help.
Does anyone have a good recommendation for shell/bash script replacements in 2025?
Thinking maybe guile?
Today in bash :
$date --date='-1 month' +"%Y%m%d"
20250303
That is because 31 Feb is not a valid date.
$dateutils.dadd today -1mo -f "%Y%m%d"
20250228
That works!
Github-Backup-Skript gibts jetzt auch bei Github Gist zum Download
https://gist.github.com/dewomser/8b5e025d9a80df85743e87973e201da9
I've completed setting up the Mastodon, Bluesky, and Twitter bots. Testing them now with a bash loop script.
#Linux #Bash #git
Alle Github -Repositories von "User" clonen:
Es ist mal wieder ein 1-Zeiler geworden.
curl --header "Authorization: 'token' '$GITHUB_TOKEN'" -L "https://api.github.com/users/User/repos?per_page=100&page=1" | jq '.[] .clone_url'|xargs -n1 -r git clone
1) Variable $GITHUB:TOKEN muss exportiert sein oder durch Token ersetzen
2) User durch Username ersetzen
3) mit zusätzlich xargs Parameter -p muss bei jedem clone zugestimmt werden.
#Linux #Bash
When I left you, I was but the learner. Now, I am the master. https://gist.github.com/dewomser/9b7b6d99b78ac9faa14816564e458649