Skip to content

Instantly share code, notes, and snippets.

View dewomser's full-sized avatar
😎
leisure at work

Stefan Höhn dewomser

😎
leisure at work
View GitHub Profile
@dewomser
dewomser / sgpt.sh
Last active October 19, 2026 14:43
Grok und ich haben aus sgpt.txt ein Bashscript gebastelt, getestet, shellcheckgeprüft.
#!/bin/bash
# ============================================================
# Bestätigungsfunktion
# ============================================================
confirm() {
local prompt="${1:-Ausführen?}"
echo -n "$prompt [j/n]: "
read -r -n 1 ans
echo
@dewomser
dewomser / sgpt.txt
Created October 17, 2026 13:31
Wolust LPD 26.2 SGPT
SGPT
------------------------------
Agentische KI vergleichbar mit Gemini Google
Was ich sonst noch benutze (für Bash)
Grok von X | Copilot von Github
Quelle Installationaanleitung
------------------------------
firefox --new-window https://www.tuxedocomputers.com/de/ShellGPT-und-Ollama-Erste-Schritte-mit-AI-und-Ihrem-TUXEDO.tuxedo
@dewomser
dewomser / search4gif_animaton.md
Last active October 2, 2026 06:50
Gif Animationen suchen.
@dewomser
dewomser / mastodon_cli.md
Last active August 18, 2026 09:53
mastodon toot comands for bash

Alle Follower mit Status 0 rausschmeißen

Also alle die, die folgen aber noch nie etwas selbst gepostet haben.

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 ein Array laden … 2.Zeile Ausgabe zeilenweise

mapfile -t array <<< "$(toot followers @dewomser)"
@dewomser
dewomser / toot_bild.sh
Last active May 29, 2026 01:05
Toot a screenshot from website. Grep title and description and post
#!/usr/bin/bash
#/usr/bin/import "$HOME"/bin/toot.png
cd "$HOME"/bin/
# Take URL as argument
url="$1"
# Fetch HTML and extract title and description from head
html=$(curl -s "$url")
@dewomser
dewomser / shebang_test.txy
Created May 19, 2026 15:08
Bash und Spielerei mit Shebang. Bashscript tooter.sh als Interpreter
#!/home/foo/bin/tooter.sh
a=lolo
echo "das ist ein Test"
echo "cat als shebang trötet Sourcecode"
echo "$a"
@dewomser
dewomser / rural_editor.txt
Last active May 25, 2026 23:07
Bash Minimaler Editor als Einzeiler. Schreiben und beenden mit <ENTER> eof <ENTER>
cat << eof > notiz_$(date '+%Y_%m_%d_%H_%M_%S').txt
@dewomser
dewomser / mkdir.md
Last active May 24, 2026 03:19
Verschachtelte Verzeichnisse anlegen mit mkdir

mkdir und modernes Bash

mkdir -p dancer/{Lolo,Lili/{girl,99},Lulu/{friend,98}}

ergibt (tree)

.
└── dancer
    ├── Lili
    │   ├── 99
 │   └── girl
@dewomser
dewomser / shellcheck_update.md
Last active April 21, 2026 12:59
Shellcheck bei Github Actions deprecated

Github Actions beschwert sich, dass #shellcheck noch node v.20 benutzt, gefordert ist 24

Deprecated und wird im September 26 abgeschaltet, LÖSUNG:

im yaml ersetzt :

- uses: actions/checkout@v3

durch

@dewomser
dewomser / docker-compose.yaml
Last active April 21, 2026 21:59
Snowflake als dockerimage. Torprojekt unterstützen. Tor
services:
snowflake-proxy:
network_mode: host
image: containers.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake:latest
container_name: snowflake-proxy
restart: unless-stopped
# For a full list of Snowflake Proxy CLI parameters see
# https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/tree/main/proxy?ref_type=heads#running-a-standalone-snowflake-proxy
# command: [ "-ephemeral-ports-range", "30000:60000" ]
watchtower: