Skip to content

Instantly share code, notes, and snippets.

View corylanou's full-sized avatar

Cory LaNou corylanou

View GitHub Profile
@corylanou
corylanou / ai-llm-usage-summary.md
Last active January 3, 2026 16:47
AI/LLM Usage in My Go Projects - Technical Deep Dive

AI/LLM Usage in My Go Projects

A technical deep-dive into how I integrate AI capabilities across four production Go projects.


Executive Summary

The Short Answer

@corylanou
corylanou / address-review.md
Created December 28, 2025 15:44
Claude Code skill: Address PR review comments, make fixes, reply, and resolve
description argument-hint model
Address PR review comments, make fixes, reply, and resolve
<pr-number>
claude-opus-4-5-20251101

Address PR Review Comments

Automates addressing pull request review feedback: analyze comments, make fixes, reply to explain changes, resolve threads, and request re-review from @codex.

@corylanou
corylanou / litestream-docs-summary.md
Created December 14, 2025 17:05
Litestream.io Documentation Summary (Oct-Dec 2025)

Litestream.io Documentation Summary

October 15 - December 14, 2025

This document summarizes the documentation work completed on litestream.io over the past ~60 days.


By the Numbers

| Metric | Count |

@corylanou
corylanou / db.go
Created September 23, 2025 15:21
Litestream #752 reproduction and fix
package litestream
import (
"bytes"
"context"
"database/sql"
"encoding/binary"
"errors"
"fmt"
"hash/crc64"
@corylanou
corylanou / reproduce-critical-bug.sh
Created September 16, 2025 19:51
Litestream v0.5.0 Critical Bug: Restore fails after interruption + checkpoint (Data Loss)
#!/bin/bash
# Litestream v0.5.0 Critical Bug Reproduction Script
#
# This script demonstrates a CRITICAL data loss bug where restore fails
# after Litestream is interrupted and a checkpoint occurs during downtime.
#
# Requirements:
# - litestream binary (built from current main branch)
# - litestream-test binary (from PR #748 or build with: go build -o bin/litestream-test ./cmd/litestream-test)
@corylanou
corylanou / test-harness-demo.sh
Created September 15, 2025 22:43
Litestream Test Harness Demo Script - Comprehensive testing of litestream-test binary
#!/bin/bash
# Litestream Test Harness Demonstration Script
# This script demonstrates the litestream-test harness capabilities
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@corylanou
corylanou / auto-date-update-setup.md
Last active September 10, 2025 20:48
Auto-Update Date in Claude Code Global CLAUDE.md - Workaround for broken global hooks

Auto-Update Date in Claude Code Global CLAUDE.md

This guide shows how to automatically update the date in your global ~/.claude/CLAUDE.md file every time you start Claude Code, bypassing the broken global hooks system.

The Problem

Claude Code v1.0.110+ has a bug where global hooks in ~/.claude/settings.json don't execute during session startup. This prevents automatic date updates in your global CLAUDE.md file.

The Solution

### Keybase proof
I hereby claim:
* I am corylanou on github.
* I am corylanou (https://keybase.io/corylanou) on keybase.
* I have a public key ASCG-v26KSD7VXilPC9tj_ycCtEzm1hn2vp7ifk_nyczFgo
To claim this, I am signing this object:
package http
import (
"bytes"
"compress/gzip"
"net/http"
"strings"
)
type gzipFilter struct {
@corylanou
corylanou / checksum.calc
Last active August 29, 2015 14:02
Calculate a mod 10 Checksum (upc) in open office calc
=IF(10-RIGHT((((MID(G123;1;1) + MID(G123;3;1) + MID(G123;5;1) + MID(G123;7;1) + MID(G123;9;1) + MID(G123;11;1))*3) + (MID(G123;2;1) + MID(G123;4;1) + MID(G123;6;1)+MID(G123;8;1)+MID(G123;10;1)+MID(G123;12;1)))/10*10;1)=10;0;10-RIGHT((((MID(G123;1;1) + MID(G123;3;1) + MID(G123;5;1) + MID(G123;7;1) + MID(G123;9;1) + MID(G123;11;1))*3) + (MID(G123;2;1) + MID(G123;4;1) + MID(G123;6;1)+MID(G123;8;1)+MID(G123;10;1)+MID(G123;12;1)))/10*10;1))