A small command that says "ping" to Claude. Your computer runs it on its own at 7:01, 12:01, and 17:01. You can also run it by hand.
You get three blocks of Claude usage in your workday instead of two.
| # util fn for https://github.com/HermannBjorgvin/Clawdmeter | |
| function clawd() { | |
| local plist="$HOME/Library/LaunchAgents/com.user.claude-usage-daemon.plist" | |
| case "$1" in | |
| start) | |
| launchctl unload "$plist" 2>/dev/null | |
| launchctl load -w "$plist" | |
| ;; | |
| stop) launchctl unload "$plist" ;; | |
| restart) launchctl unload "$plist" 2>/dev/null; launchctl load -w "$plist" ;; |
Embed Phel into a Symfony app the way a Clojure dev would. Pure handlers over plain request/response maps. Symfony stays at the edge (HTTP, DI, config). Phel owns routing, handlers, business logic. Adapter ~130 LOC.
Full demo repo, tests, docs, migration guide, REPL cookbook: https://github.com/Chemaclass/phel-symfony-demo
| #!/bin/bash | |
| # Shared StatusLine for Claude Code | |
| # Shows: robbyrussell prompt + model + cost + tokens + context % + 5h rate limit + 7d rate limit | |
| # Override locally via .claude/settings.local.json | |
| input=$(cat) | |
| # Parse all values in single jq call for performance | |
| eval $(echo "$input" | jq -r ' | |
| @sh "dir=\(.workspace.current_dir // .cwd // "unknown")", |
| #!/usr/bin/env php | |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Life Calendar Visualizer | |
| * | |
| * This script prints a visual timeline of a person's life in years and "day pairs", | |
| * where each line represents a year, and each character represents 2 days. | |
| * It uses `X` for days already lived and `_` for days yet to come. |
| #!/usr/bin/env bash | |
| ################################################################################### | |
| # usage example: bash local/release_chart.sh TypedDevs/bashunit --last 300 | |
| ################################################################################### | |
| set -euo pipefail | |
| REPO="" | |
| LIMIT_DAYS=60 |
| (ns phel-testing\local) | |
| (defn fib [n] | |
| (loop [fib-nums [0 1]] | |
| (if (>= (count fib-nums) n) | |
| (slice fib-nums 0 n) | |
| (let [[n1 n2] (reverse fib-nums)] | |
| (recur (push fib-nums (+ n1 n2))))))) | |
| (println (fib 50)) |
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "os/exec" | |
| "os/signal" | |
| "sync" | |
| "time" |