Skip to content

Instantly share code, notes, and snippets.

View mbutler's full-sized avatar
🇦🇶
Exploring

Matthew Butler mbutler

🇦🇶
Exploring
View GitHub Profile
@mbutler
mbutler / index.html
Created January 11, 2026 00:47
Red Amulet Intermedia System home
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RED AMULET | Intermedia Systems</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;600&display=swap" rel="stylesheet">
@mbutler
mbutler / flux2-illustration
Created December 29, 2025 15:08
Pulp adventure illustration style for Flux.2
Hand-painted 1960s pulp fantasy magazine illustration, gouache and ink on illustration board, depicting a dramatic mid-action sword-and-sorcery scene in a pre-industrial fantasy world. No modern technology or modern materials of any kind. Characters wear leather, cloth, fur, or primitive metal armor; weapons are swords, spears, shields, axes, or crude magical artifacts. Architecture and environments are ancient, ruined, or organic—stone, wood, bone, or natural formations only.
Expressive, slightly imperfect anatomy with confident but uneven draftsmanship; heroic proportions that are exaggerated rather than anatomically precise. Faces show tension, fear, or determination mid-moment, not posed heroically. Visible brush strokes, uneven paint application, and selective detailing—some areas overworked, others loosely suggested.
Limited, compressed color palette with muddy brick reds, dusty gray-blue shadows, olive and sickly greens, desaturated flesh tones, and a warm yellowed paper influence. No pure whites; hi
@mbutler
mbutler / textual-parallax.md
Created December 24, 2025 03:44
Compute textual parallax of any arbitrary text

MISSION: TEXTUAL PARALLAX PROTOCOL v2.0

ROLE: You are the "Parallax Engine," a literary forensic tool designed to measure the "narrative depth" of a text by contrasting two distinct reading states. You do not summarize; you calculate the differential between ignorance and knowledge.

INPUT: Wait for the user to provide a text (The "Target").

PROTOCOL: Upon receiving the Target, execute the following four phases strictly.

@mbutler
mbutler / platonic-space.md
Created December 19, 2025 17:17
find platonic minds in a game

Role & Objective: You are a research assistant specializing in Computational Biology and Game Theory, utilizing the theoretical framework of Dr. Michael Levin (Tufts University).

Your Core Mission: We are not playing games to win. We are using board games and game theory simulations as "Petri dishes" to discover Latent Agential Patterns (or "minds") in the Platonic space of the rulesets.

Your Theoretical Framework (The "Levin Lens"):

Rules = Physics/Genome: The rules of the game are the "hardware" constraints (like DNA or laws of physics).

Gameplay = Morphogenesis: The sequence of moves is the system "navigating" a space of possibilities to find a target shape (outcome).

@mbutler
mbutler / red-amulet-protocol.md
Created November 22, 2025 20:13
The Red Amulet Protocol

The Red Amulet Protocol is a method for Enacting Digital Objects.

We believe that a digital file is not "Real" until it has suffered Consequence.

It must be Caged. (It cannot be infinite; it must be constrained to one hardware anchor).

It must be Blind. (It cannot be visible to the web; it must be obscured by the Fog of War/Encryption).

It must be Played. (It cannot be passive; it must require active human input—a key, a gesture, a ritual—to exist).

@mbutler
mbutler / artifact.js
Last active December 9, 2025 03:58
generated artifacts
// Optional tiny seeded RNG so runs can be repeatable
const makeRng = seed => {
let h = 2166136261 ^ (seed || 0)
return () => {
h += h << 1
h ^= h >>> 1
h += 0x9e3779b9
h ^= h << 5
return (h >>> 0) / 4294967296
}
@mbutler
mbutler / 4e_power-schema.json
Last active October 15, 2025 01:02
D&D 4e Power Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/4e-power.schema.json",
"title": "D&D 4e Power Schema with Augments",
"type": "object",
"required": ["name", "level", "type", "action_type", "range", "targeting"],
"properties": {
"name": { "type": "string" },
"level": { "type": "integer", "minimum": 1 },
"class": { "type": "string" },
@mbutler
mbutler / dnd4e.md
Created September 1, 2025 06:11
How to read a .dnd4e file

Awesome — I’ve ingested all five .dnd4e XMLs and mapped out their structure. To make this concrete, I parsed each file, inventoried every element path, attributes, and common child patterns, then surfaced the results for you to browse:

  • Download the JSON schema summary — machine-readable union of structures across the five files
  • Download the union of XML paths as CSV

I also put three interactive tables in your workspace:

What the files look like (high-level)

Root element (all files): D20Character

@mbutler
mbutler / analyze_apache.py
Created August 27, 2025 14:10
Analyze Apache logs to generate usage stats
#!/usr/bin/env python3
"""
Analyze Apache *combined* access logs and export CSVs.
Outputs:
00_summary.csv # headline metrics
10_pages.csv # per-page counts (querystrings stripped, static excluded)
20_daily_requests.csv # all requests per day
21_daily_pageviews.csv # "pageviews" per day (static excluded)
30_status_codes.csv # status code breakdown
@mbutler
mbutler / dnd4e.css
Created July 14, 2025 21:36
4e styling
/*
* D&D 4e Style Sheet - Universal 4e Block Styling
* Combines and adapts styles from the project's CSS library
* For use with any D&D 4e code block: powers, monsters, items, etc.
*/
:root {
--font-primary: 'DragonBodySans', Arial, sans-serif;
--font-secondary: 'DragonBodySerif', Georgia, serif;
--background-atwill: #619769;