Skip to content

Instantly share code, notes, and snippets.

View vroomfondel's full-sized avatar

Henning Thieß vroomfondel

View GitHub Profile
{"schemaVersion": 1, "label": "Clones", "message": "811", "color": "blue", "namedLogo": "github", "logoColor": "white"}
@vroomfondel
vroomfondel / envsubst.sh
Last active January 23, 2026 14:37
envsubst implementation in pure bash
#!/bin/bash
# Pure Bash implementation of envsubst.
# Usage: ./envsubst.sh [SHELL-FORMAT]
# self-ref
# https://gist.githubusercontent.com/vroomfondel/7ef185d8d6d726fdf720ad0f4ef23619/raw/envsubst.sh
# per curl with cache-busting query-arg
# curl -L https://gist.githubusercontent.com/vroomfondel/7ef185d8d6d726fdf720ad0f4ef23619/raw/envsubst.sh?cache_bust=$(date +%s)
@vroomfondel
vroomfondel / update_local_k3s_keys.py
Created January 31, 2026 12:19
Compare and update K3s kubeconfig credentials
#!/usr/bin/env python3
"""
Script to compare K3s kubeconfig from remote server with local ~/.kube/config
and optionally update local credentials for a specific context.
"""
import argparse
import subprocess
import sys
from pathlib import Path
@vroomfondel
vroomfondel / flickr-immich-k8s-sync-operator_clone_history.json
Last active April 1, 2026 19:13
flickr-immich-k8s-sync-operator clone tracking
{
"2026-01-19 00:00:00+00:00": {
"count": 0,
"uniques": 0
},
"2026-01-20 00:00:00+00:00": {
"count": 0,
"uniques": 0
},
"2026-01-21 00:00:00+00:00": {
@vroomfondel
vroomfondel / openclaw-k8s-toggle-operator_clone_count.json
Last active April 2, 2026 01:52
openclaw-k8s-toggle-operator clone tracking
{"schemaVersion": 1, "label": "Clones", "message": "779", "color": "blue", "namedLogo": "github", "logoColor": "white"}
@vroomfondel
vroomfondel / flickrtoimmich_clone_count.json
Last active April 2, 2026 01:17
flickrtoimmich clone tracking
{"schemaVersion": 1, "label": "Clones", "message": "513", "color": "blue", "namedLogo": "github", "logoColor": "white"}
@vroomfondel
vroomfondel / sipstuff-k8s-operator_clone_count.json
Last active April 2, 2026 01:52
sipstuff-k8s-operator clone tracking
{"schemaVersion": 1, "label": "Clones", "message": "691", "color": "blue", "namedLogo": "github", "logoColor": "white"}
@vroomfondel
vroomfondel / networkmgmt_clone_count.json
Last active April 1, 2026 19:13
networkmgmt clone tracking
{"schemaVersion": 1, "label": "Clones", "message": "444", "color": "blue", "namedLogo": "github", "logoColor": "white"}
@vroomfondel
vroomfondel / claude-request-permission.py
Last active February 11, 2026 14:40
Claude Code settings + hook scripts
#!/usr/bin/env python3
"""Claude Code PreToolUse hook for permission decisions.
Registered in ~/.claude/settings.json as a PreToolUse hook. Claude Code calls
this script via stdin (JSON) before every tool invocation. The script decides
whether to auto-allow, block, or defer to the normal permission prompt.
== Decision priority ==
1. Read-only tools (Read, Glob, Grep, WebSearch, WebFetch) → always allowed
@vroomfondel
vroomfondel / sbcstuff_clone_count.json
Last active April 2, 2026 02:01
sbcstuff clone tracking
{"schemaVersion": 1, "label": "Clones", "message": "445", "color": "blue", "namedLogo": "github", "logoColor": "white"}