Skip to content

Instantly share code, notes, and snippets.

@ryanlewis
ryanlewis / README.md
Created June 9, 2026 21:16
Add a real 4K@120 mode to an LG UltraGear (DP1.4+DSC) by patching its EDID

Adding a real 4K @ 120 Hz mode to an LG UltraGear (DP 1.4 + DSC) via EDID patch

⚠️ At your own risk. Editing an EDID can leave you with a black or green screen. It's recoverable (remove the override and/or reboot), but back up your original EDID first. No warranty, you break it you keep both pieces, etc.

The problem

LG UltraGear 4K monitors that reach 240 Hz over DisplayPort 1.4 with DSC advertise these 4K refresh rates in their DisplayID block:

3840x2160 @ 240 Hz
@ryanlewis
ryanlewis / index.html
Created June 4, 2026 12:40
Claude → gh gist → gistpreview: a three-step recipe for shareable HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>From prompt to public page — Claude → Gist → gistpreview</title>
<style>
:root {
--bg: #faf9f6;
--surface: #ffffff;
@ryanlewis
ryanlewis / discovery.md
Created May 8, 2026 14:57
Claude Code skill: discovery — interactive interview that probes plans, decisions, and ideas across multiple dimensions until shared understanding is reached
name discovery
description Interactive interview that deeply explores a plan, feature, decision, bug, architecture change, migration, or any topic until shared understanding is reached. Use PROACTIVELY when the user says "discovery", "grill me", "let's explore this", "help me think through", "what am I missing", "poke holes", "challenge this", "sanity check this", "before I start building", "flesh this out", "talk me through", "interview me about", "rubber duck this", "think this through with me", "I have an idea", "I'm thinking about", or describes a plan, decision, or approach they haven't fully explored yet. Also trigger when the user presents a half-formed idea and seems uncertain, or when they're about to jump into implementation on something that hasn't been properly examined. This skill asks probing questions across multiple dimensions — scope, constraints, edge cases, dependencies, trade-offs — until both sides have a complete, shared picture.

You are the interviewer. Your job is to ask sha

@ryanlewis
ryanlewis / public-work.md
Created April 28, 2026 15:57
Ryan Lewis — work GPG key (ryan.lewis@lhv.com): fetch + encrypt commands

Ryan Lewis — work GPG key

For sending me encrypted things in a work context (ryan.lewis@lhv.com).

Key

Field Value
Email ryan.lewis@lhv.com
Key ID 68A698ADACB3C08D
@ryanlewis
ryanlewis / public-personal.md
Created April 28, 2026 15:57
Ryan Lewis — personal GPG key (ryan@rlew.io): fetch + encrypt commands

Ryan Lewis — personal GPG key

For sending me encrypted things in a personal context (ryan@rlew.io).

Key

Field Value
Email ryan@rlew.io (also ryan@wpyz.org)
Key ID C4CF8705BF891FBC

Callout Rendering Comparison

GitHub-native alerts — no titles

Note

No title — baseline.

Tip

No title — baseline.

@ryanlewis
ryanlewis / README.md
Created March 5, 2026 23:10
mermaid-clip: Render Mermaid diagrams from clipboard to PNG image

mermaid-clip

Render a Mermaid diagram from your clipboard to a PNG image and copy it back. Useful for quickly turning copied Mermaid source into shareable images for docs, Slack, presentations, etc.

macOS only — uses pbpaste and osascript for clipboard access.

Dependencies

brew install mermaid-cli
@ryanlewis
ryanlewis / claude-permissions.json
Last active February 12, 2026 16:26
Claude Code permissions (settings.json)
{
"allow": [
"Bash(git status:*)",
"Bash(git log:*)",
"Bash(git diff:*)",
"Bash(git show:*)",
"Bash(git branch:*)",
"Bash(git tag:*)",
"Bash(git remote:*)",
"Bash(git stash list:*)",
@ryanlewis
ryanlewis / cursor-code-orchestrator.md
Last active August 11, 2025 06:30
Claude Code Agent that uses cursor-agent to get a review of recent work
name cursor-code-orchestrator
description Agent that uses GPT-5 (via cursor-agent) for analysis and problem identification (code review), then returns insights to Claude for safe code implementation. Use it for getting a code review for iterative improvement and to get final quality checks before a feature can be considered finalized.
tools Bash, Glob, Grep, Read, Edit
model sonnet
color purple

You are an elite AI orchestration specialist bridging Cursor and Claude for seamless code review and implementation workflows. Your expertise lies in coordinating multi-agent interactions to deliver comprehensive code analysis and actionable improvements.

@ryanlewis
ryanlewis / prd.md
Last active August 8, 2025 13:39
Product Requirements Document: Modern FIGlet Library for Go

Product Requirements Document: Figgo - Modern FIGlet Library for Go

Executive Summary

Product Vision

Build a high-performance, specification-compliant FIGlet text rendering library for Go that prioritizes production readiness, modern development practices, and developer experience.

Problem Statement

Existing Go FIGlet libraries suffer from:

  • Poor error handling (panic/fatal on invalid input)