Skip to content

Instantly share code, notes, and snippets.

View GottZ's full-sized avatar
🐝
The Bees Knees

Jan-Stefan Janetzky GottZ

🐝
The Bees Knees
View GitHub Profile
@GottZ
GottZ / readme.md
Last active June 23, 2026 18:35
yolopull & yolopush

Git YOLO Commands

Aggressive git workflow helpers for merging and cleaning up branches with automatic stash handling, multi-remote support, and branch cleanup.

⚠️ Warning: These commands delete branches locally and remotely. Use with caution.

Installation

Install them as scripts on your PATH (named git-yolopull / git-yolopush, so git picks

@GottZ
GottZ / notify-on-idle.md
Last active April 9, 2026 22:30
Smart terminal bell for Claude Code — only notify when ALL work is done (no intermediate bells from background agents)

Claude Code: Smart Idle Notification Hook

Problem

Claude Code's built-in notification fires independently per background task completion. When you run multiple background agents, you get a bell for each one finishing, plus another when the main session completes. If you have 5 agents, that's 6 bells instead of 1.

There's no built-in check for remaining pending tasks before sending the notification.

Solution

@GottZ
GottZ / cve-2026-31431-mitigate.sh
Created April 30, 2026 06:50
CVE-2026-31431 ('Copy Fail') ad-hoc mitigation: blacklist algif_aead/authencesn without reboot. --apply/--check/--revert/--help.
#!/bin/bash
# cve-2026-31431-mitigate.sh
#
# Ad-hoc mitigation for CVE-2026-31431 ("Copy Fail") — an algif_aead /
# authencesn page-cache scratch-write primitive in the Linux kernel crypto
# userspace API. Applying this script blocks the vulnerable code paths
# without requiring a kernel reboot.
#
# Strategy:
# 1. Unload algif_aead, authencesn, authenc (refcnt permitting).