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 / image_viewer.md
Last active May 25, 2026 23:03
Bash Bildbertachter in TTY3 . Besonders geeignet für Linuxe ohne X

#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 / test.txt
Last active June 8, 2026 01:28 — forked from scottcain/wall-config.json
wall-config.json
Teste die Fediwall mit dieem Json hier (raw)
https://fediwall.social/?load=https://gist.githubusercontent.com/dewomser/df7041746d04ec0b7be65ec46a0440d9/raw/b4281057e90749ebdc8cb5273a7ddedeb2b886e5/wall-config.json
@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

@dewomser
dewomser / tage_bis_ostern.sh
Last active April 9, 2026 03:43
soviele Tage bis Ostern
#!/bin/bash
# Get today's date in seconds since epoch
today=$(date +%s)
# Get Easter date in YYYY-MM-DD format using ncal -e
#easter_date=$(ncal -e | awk '{print $NF}')
# Convert Easter date to seconds since epoch
# easter=$(date -d "$easter_date" +%s 2>/dev/null)
@dewomser
dewomser / gist-git-search.html
Last active June 8, 2026 08:28
Meinen Github Account durchsuchen im Browser mit Formular
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Gist-Suche (dewomser)</title>
<style>
/* Einfache, neutrale Darstellung */
.gist-search {
max-width: 420px;
@dewomser
dewomser / lyrics_johnny_cash.txt
Last active January 22, 2026 17:17
API für Lyrics ohne Anmeldung und token Beispiel,
https://lrclib.net/api/search?track_name=family+bible&artist_name=johnny+cash&album_name=the+best+of+Johnny+Cash
@dewomser
dewomser / website_download_as_html.sh
Created January 22, 2026 15:53
Komplette Website downloaden mit Bash 1-Zeiler Festplattenversion
#!/usr/bin/bash
# Es empfiehlt sich vorher einen Ordner anzulegen,
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://google.com -P site
@dewomser
dewomser / mastodon_followers_kg_no_pyvis.py
Last active January 22, 2026 15:55
Followers Knowledgegraph on mastodon? . Token is obligatory . Depth =2 . Avatar Images as the nodes. python
#!/usr/bin/env python3
"""
--------------This Script is vibe Code ---------------
mastodon_followers_kg_no_pyvis.py
Build a knowledge graph of a Mastodon account's followers up to a given depth,
using avatar images as node icons. Writes a standalone HTML using vis.js (no pyvis/Jinja2).
Example:
export MASTODON_TOKEN="..." alternativ use --token