Skip to content

Instantly share code, notes, and snippets.

View grundmanise's full-sized avatar
🔮
It's magic

Edgar grundmanise

🔮
It's magic
View GitHub Profile
@grundmanise
grundmanise / statusline-command.sh
Last active July 1, 2026 14:42
Claude Code custom statusline: model [effort] + cwd (git branch) + context bar with token usage and color thresholds
#!/bin/bash
input=$(cat)
model_raw=$(echo "$input" | jq -r '.model.display_name // .model.id // "claude"')
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // ""')
effort=$(echo "$input" | jq -r '.effort_level // .effortLevel // empty')
output_style=$(echo "$input" | jq -r '.output_style.name // ""')
# Fall back to settings.json — Claude Code doesn't pass effortLevel via stdin
@grundmanise
grundmanise / download_stripe_invoices.sh
Created March 1, 2026 23:44
Download stripe invoices
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<'EOF'
Download Stripe invoices as PDFs (the same Stripe-generated PDFs customers get).
Requirements:
- macOS (uses BSD date)
- curl