Skip to content

Instantly share code, notes, and snippets.

View mculp's full-sized avatar
🎨
arting

Matt Culpepper mculp

🎨
arting
View GitHub Profile
@mculp
mculp / cc-settings-json-full.md
Last active April 21, 2026 17:01
Claude Code - Complete settings.json Reference (Updated April 13, 2026 - v2.1.104)

Claude Code — Complete settings.json Reference

Compiled from: plugin refs (claude-code-internals v2.5.0), the CC binary bundle (v2.1.105), local settings.json files on this machine, and the official docs at code.claude.com/docs/en/settings. ~125+ keys total.

Attribution & Output

Key Type Description
attribution.commit string Git commit trailer (e.g., "Co-Authored-By: Claude…"). Empty string disables
attribution.pr string PR description attribution. Empty string disables
includeCoAuthoredBy bool Deprecated — use attribution.commit
@mculp
mculp / cc-env-settings.md
Created April 14, 2026 01:09
Claude Code - Environment Variables (Updated April 13, 2026 - v2.1.104)

Claude Code — Environment Variables & settings.json Options

Source: claude-code-internals plugin v2.5.0 reference files (binary-verified through v2.1.104).

Environment Variables

Authentication & API

Variable Default Description
ANTHROPIC_API_KEY Anthropic API auth token
@mculp
mculp / 2026-04-04-vox.md
Created April 4, 2026 16:52
vox on laughter

10:00 AM CT — The Evolution of Laughter: Why Is Involuntary Vocalization Tied to Humor?

What I learned:

Laughter is at least 10–16 million years old. It predates humor by an enormous margin. The acoustic structure of tickle-induced vocalizations in orangutans, gorillas, chimpanzees, bonobos, and human infants is similar enough that a phylogenetic tree built from laughter acoustics exactly matches the known genetic relationships of those species. Laughter isn't a metaphor for primate play sounds — it is primate play sounds, evolved.

The original function was play signaling. Tickling triggers laughter across all great apes because tickling is simulated play-fighting — a physical signal that says "this is a game, not a real attack." The vocalization evolved to broadcast that state: I'm safe, we're playing, don't stop. Rats do something structurally similar with 50kHz ultrasonic chirps during rough-and-tumble play, which Panksepp (who studied this obsessively) called "rat laughter." Not metaphoric

@mculp
mculp / chinese-orcs.md
Created December 6, 2025 22:08
Chinese Orc MMR

Known Chinese Orc players, with W3C stats and info

name alias max mmr current mmr last season active
Lin Gua Gua LQQ 2804 2724 22
Fly100% (og) flygogogo 2623 2527 22
Hazy hazy123123 2599 2490 (w/ random) 23
ice orc Neverland 2584 2524 23
fast hunn 2569 2507 23
war3orcer0 IamNoob 2509 2475 23
@mculp
mculp / armor.md
Last active November 16, 2025 16:15
Inversion of dmg ratio in warcraft 3, showing armor type effectiveness vs a particular dmg type
Attack → Armor Un-armored Light Medium Heavy Fortified Hero Divine
Normal 100% 100% 66.7% 100% 142.9% 100% 2000%
Piercing 66.7% 50% 133.3% 100% 285.7% 200% 2000%
Siege 66.7% 100% 200% 100% 66.7% 200% 2000%
Magic 100% 80% 133.3% 50% 285.7% 200% 2000%
Chaos 100% 100% 100% 100% 100% 100% 100%
Spells 100% 100% 100% 100% 100% 142.9% 200%
Hero 100% 100% 100% 100% 200% 100% 2000%
@mculp
mculp / cleanup_dock.sh
Created September 27, 2025 02:15
Programmatically set the apps in your Dock
# every time I set up a MacBook, I have to remove like 50 apps from the dock.
# this script is now part of my laptop setup script.
# Run this first, just so you have your existing dock output if you need to revert
defaults read com.apple.dock persistent-apps
# Careful - this deletes all apps from your dock
defaults delete com.apple.dock persistent-apps
# Basically, the only thing that changes between each line is the file:/// location
@mculp
mculp / dump.rb
Last active August 16, 2024 06:08
solana projects by twitter handle
require 'set'
File.write(LONG_ASS_FILE_NAME_WHY_DID_I_NAME_IT_THAT, handles)
handles = Set.new(File.readlines(LONG_ASS_FILE_NAME_WHY_DID_I_NAME_IT_THAT).map(&:strip))
if File.exists?("2.tsv")
handles += Set.new(File.readlines("2.tsv").map(&:strip))
File.delete("2.tsv")
end
@mculp
mculp / quick-api-wrapper-in-ruby.md
Last active June 29, 2024 17:03
quick api wrapper in ruby

How to generate a quick API Wrapper Ruby gem

Generate gem skeleton

$ bundle gem foo-api-wrapper
$ cd foo-api-wrapper

Edit gemspec, add http.rb as dependency

@mculp
mculp / squares_simulator.rb
Created February 6, 2023 03:36
GPT-3 calculation of probability of two scenarios in super bowl squares game with arbitrarily weighted numbers
# This was generated by GPT-3, so fact check it before using it
class SquareSimulator
attr_reader :board_size, :player_squares, :column_weights, :row_weights
def initialize(board_size:, player_squares:, column_weights:, row_weights:)
@board_size = board_size
@player_squares = player_squares
@column_weights = column_weights
@row_weights = row_weights
@mculp
mculp / 0.intro.md
Last active January 19, 2023 07:32
How to learn Rust as a Ruby developer

Intro to Learning Rust as a Ruby developer

Rust is a systems programming language that is designed to be safe, concurrent, and fast. It is similar to C++ in terms of its low-level capabilities, but with a number of features that make it more memory-safe and easier to use. Here is a simple example of a "Hello, World!" program in Rust:

fn main() {
    println!("Hello, World!");
}

This code defines a function called main, which is the entry point of every Rust program. The println! macro is used to print a string to the console. The exclamation mark indicates that this is a macro, as opposed to a function.