Skip to content

Instantly share code, notes, and snippets.

View benhook1013's full-sized avatar

Ben Hook benhook1013

View GitHub Profile
@benhook1013
benhook1013 / t3-checkpoints
Last active April 30, 2026 08:43
t3-checkpoints local CLI utility and bash completion
#!/usr/bin/env bash
set -euo pipefail
umask 077
CONFIG_FILE="${T3_CHECKPOINTS_CONFIG_FILE:-$HOME/.t3-checkpoints/config.env}"
if [[ ! -f "$CONFIG_FILE" ]]; then
mkdir -p "$(dirname "$CONFIG_FILE")"
cat > "$CONFIG_FILE" <<'EOF'
# t3-checkpoints local config
@benhook1013
benhook1013 / codex-profiles
Last active May 15, 2026 08:31
WSL Codex/T3 profile switching helper and bash completion
#!/usr/bin/env bash
set -euo pipefail
umask 077
# Generated local config.
CONFIG_FILE="${CODEX_PROFILES_CONFIG_FILE:-$HOME/.codex-profiles/config.env}"
if [[ ! -f "$CONFIG_FILE" ]]; then
mkdir -p "$(dirname "$CONFIG_FILE")"
cat > "$CONFIG_FILE" <<'EOF'
@benhook1013
benhook1013 / codex-credits.user.js
Last active March 24, 2026 04:13
Tampermonkey script to show cost and burn-rate stats on ChatGPT Codex usage page
// ==UserScript==
// @name Codex Credits -> Cost + Stats (Visited Pages Accumulator)
// @namespace ben.codex.credit.cost
// @version 10.4
// @description Show converted cost, visible-page totals, and accumulated spend across visited Codex usage pages.
// @match https://chatgpt.com/*
// @match https://chat.openai.com/*
// @run-at document-end
// @grant none
// ==/UserScript==