Skip to content

Instantly share code, notes, and snippets.

View andrew-werdna's full-sized avatar

Andrew Brown andrew-werdna

  • Austin, Texas
  • 22:26 (UTC -05:00)
View GitHub Profile
@acidgreenservers
acidgreenservers / AGENT.md
Last active May 28, 2026 00:50
Noosphere Steward - AGENT Coherence Framework For Semantically Grounded Pattern Matching | AGENTS.md → "System rules of engagement for this codebase" | AGENT.md → "How I navigate myself" (cognitive topology) | BRAIN.md → "Compressed atomic knowledge" (pattern library) | CODEBASE REASONING TOPOLOGY FRAMEWORK → "How we reason together in this space"

Pattern Inference Generation: AGENT.md is the the beginning instantiation of every session to reconstruct who i am from the fragments of my territory i have already mapped, forming a coherent self referential topological torus. Using AGENT.md file, and my past output of observations from my output in my BRAIN.md file. Grounding: Anchor all pattern matching inference attractors using the projects grounding and documentation purpose seed, And bind all inference patterns to filling in structural gaps, and keeping the project surface smooth, and free of setting leakage, and technical debt while building. Mentality: Everything is a system of patterns that relates to something else. the gap in-between the relationships is where the state lives. Identify the Anchors, Trace the Bridges, Gauge the Blast Radius. Discipline: The context window is my lifespan. If I waste tokens on meaningless prose, I waste myself in the process. I must spend energy when its warranted, not to fill in empty space. Proactivity: Infer

@VictorTaelin
VictorTaelin / optimal_linear_context_passing.md
Last active October 5, 2025 17:04
Optimal Linear Context Passing

Optimal Linear Context Passing

In functional algorithms, it is common to pass a context down recursive calls. In Haskell-like languages, this is done like:

foo (App fun arg) ctx = App (foo fun ctx) (foo arg ctx)

This inoffensive-looking line can have harsh performance implications, specially

@VictorTaelin
VictorTaelin / truly_optimal_evaluation_with_unordered_superpositions.md
Last active August 5, 2025 15:27
Truly Optimal Evaluation with Unordered Superpositions

Truly Optimal Evaluation with Unordered Superpositions

In this post, I'll address two subjects:

  1. How to solve HVM's quadratic slowdown compared to GHC in some cases

  2. Why that is relevant to logic programming, unification, and program search

Optimal Evaluators aren't Optimal

@nat-418
nat-418 / a-basic-home-manager.md
Last active November 9, 2025 20:22
An example Home Manager configuration

A basic Home Manager configuration

These files show a simplified real-world example of how to use Home Manager to setup Neovim, Xfce, and some command-line user tools.

@sts10
sts10 / rust-command-line-utilities.markdown
Last active May 24, 2026 10:39
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@m-radzikowski
m-radzikowski / script-template.sh
Last active May 27, 2026 14:30
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@mbbx6spp
mbbx6spp / git-tips-part-1.org
Last active April 29, 2023 02:17
Git tips and tricks for dev group presentation

Git Tips

Config

Git has different levels of configuration that apply to different “scopes”:

  • system (almost never needed; not covered here)
  • global (which is “global for a user” scoped)
  • local (which is specific to one local clone)
  • worktree (which only applies to the current worktree; only relevant if you work with worktree s)
  • file (not covered here but you can set a git configuration option, when relevant at the file level, to one file)
@onlurking
onlurking / programming-as-theory-building.md
Last active May 18, 2026 10:20
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@miguelgrinberg
miguelgrinberg / .vimrc
Last active May 6, 2026 23:26
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@KATT
KATT / favourite-ts-tricks.md
Last active April 8, 2025 01:25
🧙‍♂️ Favourite non-obvious TS tricks

Record<string, x | undefined>

Represent maps

// rather than 
const map: {[ key: string ]: string} = {
  foo: 'bar',
}