Every Claude Code hook event plays a thematic Minecraft sound. Random variation each time.
| Hook | Minecraft Sound | Vibe |
|---|---|---|
| SessionStart | Chest open | Opening a session |
| SessionEnd | Chest close | Packing up |
| #!/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' |
Every Claude Code hook event plays a thematic Minecraft sound. Random variation each time.
| Hook | Minecraft Sound | Vibe |
|---|---|---|
| SessionStart | Chest open | Opening a session |
| SessionEnd | Chest close | Packing up |
| #!/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) | |
| """ |
| #!/usr/bin/env ruby | |
| # describe_json - Parses JSON files and displays a detailed, human-readable | |
| # breakdown of the schema including data types, field names, array sizes, | |
| # and sample values. Supports file arguments or stdin input. | |
| # author: claude-haiku | |
| require 'json' | |
| def show_help | |
| puts <<~HELP |
| #!/bin/bash | |
| if [[ ! -n "$ANGRY" ]] | |
| then | |
| echo "ANGRY flag not set, skipping.." | |
| exit 1 | |
| fi | |
| echo "CLEANING" |
| // 1. RUNTIME ERRORS (RAW TYPES) | |
| // PROBLEM | |
| List list = new ArrayList(); | |
| list.add(99); | |
| String s = (String) list.get(0); // ClassCastException at runtime! | |
| // SOLUTION | |
| List<Integer> list = new ArrayList<>(); | |
| list.add(99); | |
| // list.add("a"); // Compiler Error: Prevents the crash immediately |
| # frozen_string_literal: true | |
| # ----------------------------------------------------------------------------- | |
| # Renuo Rails Application Template | |
| # ----------------------------------------------------------------------------- | |
| # Purpose: | |
| # Automates the setup of a new Rails project according to Renuo AG conventions. | |
| # | |
| # Features: | |
| # * Enforces Ruby version consistency with `.ruby-version` |
| #!/bin/bash | |
| MAIN_BRANCH="master" | |
| RUBOCOP_CMD="docker compose exec -T app bundle exec rubocop -a" | |
| ERB_LINT_CMD="docker compose exec -T app bundle exec erb_lint -a" | |
| ESLINT_CMD="docker compose exec -T app eslint --fix" | |
| CHANGED_FILES=$(git diff --name-only $MAIN_BRANCH) | |
| process_file() { |
| #!/usr/bin/env ruby | |
| # SimpleCov Coverage Parser | |
| # ========================= | |
| # | |
| # Command-line tool to parse SimpleCov HTML coverage reports into text format. | |
| # | |
| # Features: | |
| # - Parse SimpleCov HTML files into structured text output | |
| # - Display overall coverage statistics with file counts and percentages |
| #!/bin/bash | |
| # Check if a directory to flatten is provided | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: $0 <directory_to_flatten> <target_directory>" | |
| exit 1 | |
| fi | |
| SOURCE_DIR="$1" | |
| TARGET_DIR="$2" |