Skip to content

Instantly share code, notes, and snippets.

@bradleygolden
bradleygolden / gist:f0a0c749c85184f16ce39cb290ea920f
Created January 22, 2026 15:42
Ralph Loop Reference Guide
# Ralph Loop Reference Guide
Conceptual guide for autonomous AI coding loops.
---
## Core Philosophy
### The Problem: Context Rot
@bradleygolden
bradleygolden / PROMPT.md
Last active January 15, 2026 22:26
PROMPT.md Template

GUIDE

You are working in a loop. Keep you tasks small and scoped. Stop when you're done, you'll loop and have the opportunity to work on it again. You are smart and capable of inference, guidance is good enough for you. Write progress as guided.

Loop Workflow

@bradleygolden
bradleygolden / ralph_setup.md
Last active January 22, 2026 16:07
Ralph setup
  1. Signup up at z.ai (use my code here)
  2. Signup at https://sprites.dev/
  3. Create and sprite sprite create my-sprite
  4. Auth with github: gh auth
  5. Clone your repo: gh repo clone ...
  6. Logout of gh: gh auth logout
  7. Setup z.ai with an API key npx @z_ai/coding-helper
  8. Copy the ralph script:
@bradleygolden
bradleygolden / ralph_with_cc_tui.sh
Last active January 22, 2026 15:14
Ralph with CC TUI in each iteration
#!/bin/bash
# Ralph Wiggum Loop - Standalone Claude Code TUI Runner
# Run this from your terminal - it will open/close Claude Code repeatedly
set -e
# Get the prompt from arguments
PROMPT="$*"
@bradleygolden
bradleygolden / elixir-library-documentation-manifesto
Last active January 13, 2026 22:57
The Elixir Library Documentation Manifesto
# The Elixir Library Documentation Manifesto
Principles from direct response copywriting adapted for technical library documentation. These aren't theories—they're proven principles for getting developers to understand, adopt, and successfully use your library.
---
## The ten foundational laws of library documentation
**1. You cannot create need—only channel it.** Developers arrive with existing problems. Your job is to show how your library solves what they're already trying to solve. Research the actual Stack Overflow questions, ElixirForum threads, and GitHub issues that lead people to need your solution. Use their exact terminology.

Keybase proof

I hereby claim:

  • I am bradleygolden on github.
  • I am bgolden (https://keybase.io/bgolden) on keybase.
  • I have a public key ASD_eWpI2-fUKRyuFT1SvQwORq-ypFeIyxuFUsVQd_KUwgo

To claim this, I am signing this object:

@bradleygolden
bradleygolden / README-Template.md
Created March 12, 2017 22:43 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@bradleygolden
bradleygolden / hack_it.sh
Last active December 2, 2015 05:06
A basic script to test whether a server can withstand a series of requests or not.
#!/bin/bash
#run using $ bash 10000 (or any other number you choose)
#change the url to the url where your server is serving files
#run in multiple terminal sessions to force simulatenous requests
n=$1
j=0
i=0
while [ $i -lt $n ]; do
@bradleygolden
bradleygolden / http_header_check.sh
Last active November 13, 2015 12:09
Tests the http response header of a given set of URIs
#!/bin/bash
# to run: $ bash <ip> <port>
host=$1
port=$2
while read LINE; do
if [ ! ${LINE:0:1} == "#" ]
then
@bradleygolden
bradleygolden / md5_check.sh
Last active November 9, 2015 20:28
Download files from a server and checks those files against local files. This is useful for testing that your server is correctly serving files from your local machine.
#!/bin/bash
# run using sh md5_check <directory to check> <ip> <port> <md5-type>
# example:
# OSX: $ bash md5_check.sh WWW localhost 8888 md5
# LINUX: $ bash md5_check.sh WWW localhost 8888 md5sum
# DO NOT USE SLASHES, ONLY USE THE DIRECTORY NAME