Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active June 26, 2026 18:37
Show Gist options
  • Select an option

  • Save dewomser/e2a175e4c10de51a3fa5be08dfbbcc47 to your computer and use it in GitHub Desktop.

Select an option

Save dewomser/e2a175e4c10de51a3fa5be08dfbbcc47 to your computer and use it in GitHub Desktop.
mastodon toot commabdos for bash

Alle Follower mit Status 0 rausschmeißen

toot followers --json | jq -r '.[] | select(.statuses_count == 0) | .acct' | while read acct;
do toot block "$acct" && toot unblock "$acct"; done `¸¸

Alle meine Mastodon-Follower in eine Datei schreiben

und dann in ein Array laden …

toot followers @dewomser > arr.txt
mapfile -t array <<< $(cat arr.txt)
echo "${array[0]}" 

Eine Möglichkeit von vielen. Aber diese gefällt mir gerade an besten.

Schnell mal was wegtröten

Es ist wieder ein Einzeiler geworden. Uhhh ! das sieht schick aus, weil mit kdialog .

toot post "$(kdialog --inputbox "Dialog-Tooter" "Lolo is a dancer")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment