Skip to content

Instantly share code, notes, and snippets.

View charliek's full-sized avatar

Charlie Knudsen charliek

View GitHub Profile
@charliek
charliek / claude-code-statusline.sh
Last active September 6, 2026 19:32
Claude Code status line: project | branch | worktree | model | context tokens | time+cost | rate limits (uniform dim gray)
#!/bin/bash
# Claude Code status line.
# Claude Code pipes a JSON payload on stdin; shape verified against CLI 2.1.258.
# Segments: project | branch | worktree | model (effort) | context tokens | time cost | rate limits
# No ANSI colors on purpose: Claude Code renders the status line with dimColor, so
# uncolored text comes out uniformly gray. Optional segments vanish entirely when
# their field is absent, separators and all.
input=$(cat)
@charliek
charliek / claude_enterprise_status_line.sh
Last active September 3, 2026 22:24
Claude Code status line for enterprise / org seats — surfaces org usage limits that the consumer-plan examples silently render as nothing
#!/bin/bash
# Claude Code status line -- enterprise / org-seat edition.
#
# project | branch | worktree | PR | model (effort) | context | time cost | usage limits
#
# Org seats get no rate-limit headers back, so `.rate_limits` is usually absent from
# the payload and consumer-plan status lines show nothing. This one prefers live
# `.rate_limits.*` when present, and otherwise falls back to the usage cache in
# ~/.claude.json, marking its age: (none) <1h, ~ >1h, ! >24h. Run /usage to refresh.
#
@charliek
charliek / lumen_policy.txt
Created April 21, 2026 00:22
Privacy Policy for Lumen
# Lumen App Privacy Policy
**Last updated: April 21, 2026**
## Overview
Lumen is a personal AI agent application developed by Charlie Knudsen (Android package `us.charliek.lumen`). This policy describes how the app collects, uses, and handles your information.
## Information We Collect
@charliek
charliek / policy.txt
Created March 14, 2026 04:57
Tapper App Privacy Policy
# Tapper Privacy Policy
**Last updated: March 14, 2026**
## Overview
Tapper is a personal voice agent application developed by Charlie Knudsen. This policy describes how the app collects, uses, and handles your information.
## Information We Collect
@charliek
charliek / AGENTS.md
Created December 10, 2025 20:28
Jar Source Lookup

Kotlin Source Code Lookup

Project code

Project source files are in src/main/kotlin/ and src/test/kotlin/. Use standard file reading tools to examine them.

External dependencies (library code from JARs)

Use kotlin-source-lookup to view source code from project dependencies. Works for both Kotlin (.kt) and Java (.java) sources.

# Fully qualified name - most precise, use for Java libraries
@charliek
charliek / docker-compose.yml
Last active April 2, 2016 23:06
Zipkin with Kafka
kafka:
image: spotify/kafka
environment:
- ADVERTISED_HOST
- ADVERTISED_PORT=9092
ports:
- 2181:2181
- 9092:9092
cassandra:
@charliek
charliek / fastly_talk.md
Created November 25, 2015 23:13
Globally Distributed Purging System Links
@charliek
charliek / keybase.md
Created July 22, 2015 16:05
keybase.md

Keybase proof

I hereby claim:

  • I am charliek on github.
  • I am charliek (https://keybase.io/charliek) on keybase.
  • I have a public key whose fingerprint is DC8C EDB1 9FA9 DAA8 4730 68F4 3174 7F56 E128 5464

To claim this, I am signing this object:

@charliek
charliek / vsub.pl
Created September 19, 2014 14:50
Simple perl environment variable substitution
#!/usr/bin/perl
use strict;
use warnings;
my $num_args = $#ARGV + 1;
if ($num_args != 2) {
print "\nUsage: vsub.pl [input file] [output file]\n";
exit 1;
}
@charliek
charliek / loadEnv.pl
Created September 16, 2014 14:37
Perl Environment Variable Loader
#!/usr/bin/perl
# Take in a file containing environment variables line by line
# and if the variable is not yet set print out an export command
# that can be evaluated by bash. This allows us to specify environment
# values in a much easier format than otherwise allowed. For example:
#
# # Comments are expressed with a leading hash sign and on their own line.
# # Empty lines are ok.
#