Skip to content

Instantly share code, notes, and snippets.

View ericboehs's full-sized avatar

Eric Boehs ericboehs

  • Oddball
  • Enid, OK
  • 17:01 (UTC -06:00)
View GitHub Profile
@ericboehs
ericboehs / propresenter-status
Last active February 22, 2026 21:46
Read-only ProPresenter status tool — live service timing, playlist, slides, and message pacing
#!/usr/bin/env ruby
# frozen_string_literal: true
# propresenter-status - Read-only ProPresenter status tool
#
# Queries the ProPresenter REST API to show current slide, playlist, and
# presentation details. Includes service timing info.
#
# Usage: propresenter-status status
# propresenter-status playlist
@ericboehs
ericboehs / sermon-highlights
Last active February 22, 2026 16:50
Extract yellow-highlighted ProPresenter screen items (scriptures, key points, graphics) from .pages or .docx sermon files
#!/usr/bin/env ruby
# frozen_string_literal: true
# sermon-highlights - Extract ProPresenter screen items from a sermon document
#
# Accepts .pages or .docx files. For .pages files, Pages.app is used to
# convert to .docx automatically. Parses yellow-highlighted text (scriptures,
# pull quotes, graphics) intended for display on screen. Bible version tags
# like (NKJV) immediately after highlighted scripture references are
# automatically captured. Rich text formatting (bold, italic, underline) is
@ericboehs
ericboehs / claude-code-stats.py
Created February 18, 2026 17:55
Claude Code usage stats analyzer - interactions/day, tokens, cache hit rate, estimated API costs
#!/usr/bin/env python3
"""Claude Code usage stats analyzer.
Parses local Claude Code session data to show:
- Average interactions per day
- Average input/output tokens per interaction
- Average tool call chain depth
- Token breakdown by category (base, cache write, cache read)
- Estimated API costs by model
@ericboehs
ericboehs / claude-usage
Created February 15, 2026 00:41
claude-usage: Scrape Claude Code /usage output via tmux (archived from EARL bot)
#!/usr/bin/env bash
# Scrape Claude Code /usage output via tmux.
# Spawns an interactive Claude session, runs /usage, captures output, exits.
#
# Usage:
# bin/claude-usage # Human-readable output
# bin/claude-usage --json # JSON output for programmatic use
#
# Requires: tmux, claude CLI
set -euo pipefail
@ericboehs
ericboehs / claude-context
Last active February 15, 2026 02:03
claude-context: Scrape Claude Code /context output via tmux
#!/usr/bin/env bash
# Scrape Claude Code /context output via tmux.
# Resumes an existing session, runs /context, captures output, exits.
#
# Usage:
# bin/claude-context <session-id> # Human-readable output
# bin/claude-context <session-id> --json # JSON output for programmatic use
#
# Requires: tmux, claude CLI
set -euo pipefail
@ericboehs
ericboehs / README.md
Created January 28, 2026 14:59
Claude Code session inspection tools - list and tail active sessions

Claude Code Session Tools

Two shell scripts for inspecting active Claude Code sessions.

Installation

# Download both scripts
curl -sL https://gist.github.com/ericboehs/8586c0e7449015fb7a6ea374d4ae5018/raw/claude-active -o ~/.local/bin/claude-active
curl -sL https://gist.github.com/ericboehs/8586c0e7449015fb7a6ea374d4ae5018/raw/claude-tail -o ~/.local/bin/claude-tail
@ericboehs
ericboehs / README-PS.md
Created December 16, 2025 00:06
Shai-Hulud PowerShell Detector

Shai-Hulud Detector - PowerShell Edition

A PowerShell-based security scanner that detects indicators of compromise (IOCs) from the Shai-Hulud npm supply chain attacks that occurred in September 2025 and November 2025. This tool specifically targets the "Shai-Hulud: The Second Coming" attack that used fake Bun runtime installations to harvest credentials.

📋 Table of Contents

@ericboehs
ericboehs / slack
Last active December 15, 2025 00:54
Slack CLI - status, presence, DND, and messages from the command line
#!/usr/bin/env bash
set -euo pipefail
VERSION="2.11.0"
SCRIPT_NAME="slack"
# XDG Base Directory support
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/slack-cli"
CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/slack-cli"
TOKENS_FILE="$CONFIG_DIR/tokens.json"
@ericboehs
ericboehs / slack-status
Last active December 11, 2025 19:13
CLI tool to set Slack status from the command line (supports multiple workspaces, presets, age encryption)
#!/usr/bin/env bash
set -euo pipefail
VERSION="1.1.0"
SCRIPT_NAME="slack-status"
# XDG Base Directory support
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/slack-status"
TOKENS_FILE="$CONFIG_DIR/tokens.json"
TOKENS_FILE_ENCRYPTED="$CONFIG_DIR/tokens.age"
@ericboehs
ericboehs / ios-safari-remote.js
Last active December 11, 2025 16:52
iOS Safari Remote Control - CLI tool to control Safari on iOS devices via USB. Requires ios_webkit_debug_proxy. Features: device selection by name (-d), list pages, navigate, get HTML/text, click links, eval JS.
#!/usr/bin/env node
const WebSocket = require('ws');
const http = require('http');
// Default ports to try for device discovery
const DEVICE_LIST_PORTS = [9221, 9100];
// Parse CLI arguments
const args = process.argv.slice(2);