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 / 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:
@dewomser
dewomser / aria2c_websocket.md
Last active April 9, 2026 23:37
Bash aria2

aria2 Downloader und Firefoxextension

aria2c --enable-rpc --rpc-listen-all --max-connection-per-server=4 --min-split-size=1M

Den erzeugten Websocket, localhost Port 6800 , kann man nätürlich auch für torrent … verwenden. Meine empfohlene Extension für Firefox : Aria2-Extension

@dewomser
dewomser / base_dirname.txt
Created April 5, 2026 06:19
Bash Basename, Dirname und Parameter expansion
#Linux #Bash
basename und dirname
sind auch Teil der Parameter expansion
lolo="~/gogo/usr/bin/lolo.txt.gz"
dirname $lolo
#oder
echo "${lolo%/*}"
@dewomser
dewomser / mousepos_aux_bash.txt
Created March 21, 2026 04:07
Mausposition ermitteln mit KDE / Wayland
Kwin debug konsole -> Eingabeereignisse
xev >mousepos .txt
watch kdotool getmouselocation --shell
@dewomser
dewomser / image_viewer.md
Last active March 15, 2026 16:52
Bash Bildbertachter in TTY3

#Linux #Bash

Schneller Bildbetrachter mit framebuffer/ fbi

sudo fbi -noverbose -T 3 -a -d /dev/fb0 /home/karl/Bilder/Bild.jpg

Der Fokus springt bei mir automagisch auf tty3 (wegen Parameter -T3) und zeigt dort das Bild. Zurück gehts mit < STRG > + < ALT > + < F1 > Ohne Gewähr.
Info und Installation: https://github.com/kraxel/fbida

@dewomser
dewomser / spiegelschrift.html
Created March 1, 2026 18:50
Spiegelschrift 2026 ein Versuch mit KI Teilerfolg
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com" rel="stylesheet">
<style>
#myTextarea {
font-family: 'Dancing Script', cursive;
font-size: 24px;
width: 100%;
@dewomser
dewomser / wall-config.json
Last active February 23, 2026 17:17 — forked from scottcain/wall-config.json
wall-config.json
{
"servers": [
"social.tchncs.de"
],
"tags": [
"linux",
"bash"
],
"accounts": [
"dewomser"
@dewomser
dewomser / gist_backup.sh
Created February 20, 2026 09:27
Backup all your Gists . Clone to local
#!/bin/bash
# Script to pull GitHub gists
# Based on the functional model in models/gist-backup.sh
# Configuration
GITHUB_USERNAME="foo"
# Path to backup directory (change this to your preferred location)
BACKUP_PATH="/home/foo/github-gists-backup-$(date '+%Y-%m-%d-%H')"
GITHUB_TOKEN="$GIST_TOKEN"
#echo $GITHUB_TOKEN
# Max length for folder name prefix (from file name)
@dewomser
dewomser / cat2miau.md
Last active February 16, 2026 16:44
cat2miau Bash enhencement for reading in Textfile with cat

Der CAT-Ersatz zum lesen von Textdateien ist MIAU !

Diese Funktion => .bashrc

miau() {
  printf '%s' "$(<"$1")"
}

in das Script