Skip to content

Instantly share code, notes, and snippets.

View tkirkland's full-sized avatar

Tony Kirkland tkirkland

  • 20:47 (UTC -05:00)
View GitHub Profile
@seqis
seqis / gist:5aba0b65ac3f4d66c9cf6825b48d9565
Created June 1, 2025 17:55
This Python script analyzes your local Claude Code conversation logs to track token usage, costs, and provide detailed breakdowns by model and time period (7/30/60 days), automatically exporting data to timestamped CSV files for historical tracking. Since Claude Code may purge local logs after an unknown retention period (estimated 30 days), the…
#!/usr/bin/env python3
"""
Claude Code Usage Tracker - Public Version
IMPORTANT: Run this script periodically (daily recommended) as Claude Code may purge
local conversation logs after an unknown retention period (estimated 30 days based on
feedback transcript retention policy). Set up a cron job to preserve your usage history.
Example crontab entry (runs daily at 8 AM):
0 8 * * * cd /path/to/script && python3 PUBLIC_claude_usage_tracker.py >/dev/null 2>&1
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active December 7, 2025 11:36
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none