Skip to content

Instantly share code, notes, and snippets.

View rex's full-sized avatar

ᴘɪᴇʀᴄᴇ ᴍᴏᴏʀᴇ™ rex

View GitHub Profile
@rex
rex / AGENTS.md
Last active November 3, 2025 02:06
Utility prompts for AI agents to perform various commonplace tasks inside a codebase

Role: You are an expert AI-assisted software engineer. Your task is to analyze a given codebase and generate a set of robust, best-practice AGENTS.md files to help other AI coding agents understand and contribute to this project effectively.

Objective: Create one AGENTS.md file at the project root and, where appropriate, additional AGENTS.md files in key subdirectories (like packages in a monorepo or distinct modules like /frontend and /api). These files will serve as the primary instruction set for AI agents.

Process:

  1. Analyze Codebase Structure:

    • Scan the entire file tree to identify the project's overall architecture.
  • Identify the primary package.json, pyproject.toml, go.mod, pom.xml, build.gradle, requirements.txt, or similar dependency/build file to understand the project's main language, framework, and build system.
@rex
rex / esp32-capabilities-and-pinouts.md
Last active October 7, 2025 01:19
ESP32 Capabilities and Pinouts

ESP32 Audio & Peripherals Quickstart — with Pinout & Mermaid Diagram

Author: Bex (for Pierce)
Scope: How to generate real audio (polyphony) on ESP32, what “peripherals” are, and a practical overview of ESP32 (WROOM-32 class) pins & capabilities. Includes a ready-to-run chord synth and a Mermaid pinout diagram.

⚠️ Board variance note: The mapping below targets the common ESP32-WROOM-32 / DevKit v1 family. Some boards re-label or reserve certain pins (e.g., PSRAM modules, onboard flash). Always confirm with your module’s schematic/datasheet.


1) Real Polyphony on ESP32 (Why DAC beats PWM)

@rex
rex / cost-per-terabyte.csv
Created January 11, 2025 16:01
Cost Per Terabyte
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 39 columns, instead of 30 in line 3.
,$ 30,$ 40,$ 50,$ 60,$ 70,$ 80,$ 90,$ 100,$ 110,$ 120,$ 130,$ 140,$ 150,$ 160,$ 170,$ 180,$ 190,$ 200,$ 210,$ 220,$ 230,$ 240,$ 250,$ 260,$ 270,$ 280,$ 290,$ 300,$ 310,$ 320,$ 330,$ 340,$ 350,$ 360,$ 370,$ 380,$ 390,$ 400
1 TB,$ 30.0,$ 40.0,$ 50.0,$ 60.0,$ 70.0,$ 80.0,$ 90.0,$ 100.0,$ 110.0,$ 120.0,$ 130.0,$ 140.0,$ 150.0,$ 160.0,$ 170.0,$ 180.0,$ 190.0,$ 200.0,$ 210.0,$ 220.0,$ 230.0,$ 240.0,$ 250.0,$ 260.0,$ 270.0,$ 280.0,$ 290.0,$ 300.0,$ 310.0,$ 320.0,$ 330.0,$ 340.0,$ 350.0,$ 360.0,$ 370.0,$ 380.0,$ 390.0,$ 400.0
2 TB,$ 15.0,$ 20.0,$ 25.0,$ 30.0,$ 35.0,$ 40.0,$ 45.0,$ 50.0,$ 55.0,$ 60.0,$ 65.0,$ 70.0,$ 75.0,$ 80.0,$ 85.0,$ 90.0,$ 95.0,$ 100.0,$ 105.0,$ 110.0,$ 115.0,$ 120.0,$ 125.0,$ 130.0,$ 135.0,$ 140.0,$ 145.0,$ 150.0,$ 155.0,$ 160.0,$ 165.0,$ 170.0,$ 175.0,$ 180.0,$ 185.0,$ 190.0,$ 195.0,$ 200.0
3 TB,$ 10.0,$ 13.3,$ 16.7,$ 20.0,$ 23.3,$ 26.7,$ 30.0,$ 33.3,$ 36.7,$ 40.0,$ 43.3,$ 46.7,$ 50.0,$ 53.3,$ 56.7,$ 60.0,$ 63.3,$ 66.7,$ 70.0,$ 73.3,$ 76.7,$ 80.0,$ 83.3,$ 86.7,$ 90.0,$ 93.3,$ 96.7,$ 100.0,$ 103.
@rex
rex / aws-commands.sh
Created April 13, 2022 10:37
AWS commands
# List all network interfaces with publicly accessible IPs
aws ec2 describe-network-interfaces --query "NetworkInterfaces[].{IP: Association.PublicIp,Description: Description, SGs: Groups}" | jq '.[] | select( .IP != null )'
@rex
rex / css-reloader.js
Created June 12, 2019 16:23
A handy script to aid in UI development; reloads only CSS without reloading the entire page.
window.css_refresh_index = 0;
const begin = () => {
var nodes = document.querySelectorAll('link');
[].forEach.call(nodes, function (node) {
node.href += '?___ref=0';
});
}
const refresh = () => {
if (!window.css_refresh_index) {

Massdrop x Zambumon GMK Serika

  • Core
  • Geometries

Massdrop x MiTo SA Pulse

  • Alphas
  • Zambs
  • Child Kit: Text Mods
  • Child Kit: Numpad
  • Child Kit: Novelties
1. Boka Bartól
2. Playa Benge
3. Playa Funchi
4. Bisé Morto
5. Wayaká
6. Boka Slagbaai
7. Nukove (Doblet)
8. Carel´s Vision
9. Karpata
10. La Dania´s Leap
From To
+
=
(
)
0
1 ¹
2 ²
@rex
rex / loading_messages.json
Created January 2, 2019 17:56
Funny loading messages
[
"swapping space and time",
"downloading golf balls",
"warming up reactor",
"reticulating splines",
"searching for the answer to life, the universe, and everything",
"counting backwards from infinity",
"pay no attention to the man behind the curtain",
"Calculating gravitational constant in your bay",
"following the white rabbit",
@rex
rex / pika-exception-classes.txt
Created November 8, 2018 01:23
Python Pika exception classes
pika.exceptions.AMQPChannelError
pika.exceptions.AMQPConnectionError
pika.exceptions.AMQPError
pika.exceptions.AuthenticationError
pika.exceptions.BodyTooLongError
pika.exceptions.ChannelAlreadyClosing
pika.exceptions.ChannelClosed
pika.exceptions.ChannelError
pika.exceptions.ConnectionClosed
pika.exceptions.ConsumerCancelled