Skip to content

Instantly share code, notes, and snippets.

@bopm
bopm / token_analysis.py
Created April 6, 2026 23:12 — forked from kieranklaassen/token_analysis.py
Claude Code token usage analyzer - breaks down usage by project, session, and subagent
#!/usr/bin/env python3
"""
Claude Code token usage analyzer.
Analyzes ~/.claude/projects/ JSONL files for token usage patterns.
"""
import json
import os
import sys
from pathlib import Path
@bopm
bopm / revert-systemd-userdb-birthdate.patch
Created March 19, 2026 22:23 — forked from jeremytregunna/revert-systemd-userdb-birthdate.patch
Patch to revert systemd's userdb birthDate record bits. Valid as of 2026-03-19
diff --git a/docs/USER_RECORD.md b/docs/USER_RECORD.md
index 5335e145b5..9d6d8c1d03 100644
--- a/docs/USER_RECORD.md
+++ b/docs/USER_RECORD.md
@@ -273,9 +273,6 @@ This must be a string, and should follow the semantics defined in the
It's probably wise to use a location string processable by geo-location subsystems, but this is not enforced nor required.
Example: `Berlin, Germany` or `Basement, Room 3a`.
-`birthDate` → A string in ISO 8601 calendar date format (`YYYY-MM-DD`) indicating the user's date
-of birth. The earliest representable year is 1900. This field is optional.
@bopm
bopm / issues
Last active January 24, 2026 06:08 — forked from Shpigford/issues
A Claude Code skill for interacting with GitHub issues
---
name: github-issues
version: 1.0.0
description: >-
Manage GitHub issues from the command line. Create, list, filter, view, close, and comment
on issues. Use when user wants to "create issue", "file bug", "report issue", "list issues",
"show my issues", "view issue", "close issue", or "add comment to issue".
allowed-tools: Bash(gh:*), AskUserQuestion
---
@bopm
bopm / README.md
Last active December 29, 2015 15:39 — forked from mbostock/.block

A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.

Compare to this radial layout.