Skip to content

Instantly share code, notes, and snippets.

View cb341's full-sized avatar
🌈

Dani Bengl cb341

🌈
View GitHub Profile
@cb341
cb341 / summarize.py
Created March 28, 2026 14:44
map-reduce-conversations
#!/usr/bin/env python3
"""
Map-reduce summarization of conversation chunks using Claude Sonnet.
Usage:
python summarize.py # run full pipeline
python summarize.py --map-only # run map phase only
python summarize.py --reduce-only # run reduce phase only (expects summaries/ to exist)
"""
@cb341
cb341 / README.md
Last active April 7, 2026 17:05
Minecraft sound effects as Claude Code hooks - every hook event plays a thematic Minecraft .ogg sound with random variation picking. Sounds sourced from Minecraft wiki. Requires macOS (afplay) and .ogg files in ~/Documents/minecraft-claude-code-sounds/ organized by hook name.

Minecraft Sound Effects for Claude Code Hooks

Every Claude Code hook event plays a thematic Minecraft sound. Random variation each time.

Sound Mapping

Hook Minecraft Sound Vibe
SessionStart Chest open Opening a session
SessionEnd Chest close Packing up
@cb341
cb341 / ip_frame.sh
Created April 12, 2026 09:50
IP Frame Schema Reference
#!/bin/bash
# IPv4 Header Frame Schema - ANSI box drawing
# Grid: 32 bits per row, each bit = 3 chars wide (2 content + 1 separator)
# Total inner width = 32*3 - 1 = 95 chars
R='\033[0m'
B='\033[1;34m'
W='\033[1;37m'
G='\033[1;32m'
Y='\033[1;33m'