Skip to content

Instantly share code, notes, and snippets.

@Ovid
Ovid / architecture-review.md
Last active July 20, 2026 17:51
Fable Architecture Review

Human Note

The following is an architecture report on experimental software built with Fable. Parts of this report have been slightly altered to obscure what is being built, but no material findings have been changed or omitted.

The codebase is small (roughly 10K lines of code) and Fable had no significant problems in creating the software. To create the original spec and plan, we used Superpowers and PAAD to ensure that both were of the highest quality. In other words, we used spec-driven development with an extremely detailed, high-quality specification.

For the implementation, we deliberately did not use the PAAD methodology. We wanted to assess the quality of the software that Fable can natively build without engineering assistance.

After the implementation, we manually verified that the software behaved as intended. It mostly did, with a few quirks, but it was suitable. Then we ran PAAD's `/ag

@PJUllrich
PJUllrich / audit.ex
Created May 12, 2026 10:58
The Prompts I use for finding Vulnerabilities in Elixir/Erlang projects
defmodule MyApp.Prompts.Audit do
@moduledoc """
Prompts for the audit pipeline. Two entry points:
* `audit_file/4` — embeds a single source file in the prompt and
runs `MyApp.CodingAgent` against it. Style is `:simple` or
`:deep`; the executor picks based on `audit.strategy`.
* `audit_directory/2` — whole-package audit. Spawns the agent with
`:cwd` set to the source dir so it can use Read/Grep/Bash.
"""

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@karpathy
karpathy / microgpt.py
Last active November 27, 2026 22:55
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@aslakhellesoy
aslakhellesoy / bumbailiff
Last active February 19, 2021 10:03
You can have a little tech debt for a short time. After that the bumbailiff will be up your bum.
#!/usr/bin/env bash
#
# The bumbailiff allows the team to take up a small amount of technical debt
# (TODOs in the code) for a limited period. After that period the script fails.
#
# Originally written by Aslak Hellesoy
#
set -ef -o pipefail
IFS=$'\n' # make newlines the only separator
@dddnuts
dddnuts / Fastfile
Created June 4, 2016 10:39
Build ipa from Unity project with fastlane
fastlane_version "1.94.0"
default_platform :ios
platform :ios do
desc "Run Unity Editor tests"
lane :test_unit do
unity(
run_editor_tests: true
)
@mikebroberts
mikebroberts / gist:6595266
Last active December 23, 2015 06:39
Clojure code to authenticate against Instagram's API. Requires clj-http (tested against [clj-http "0.7.0"]).
(ns instagram
"Functions to authenticate against Instagram's API.
See http://instagram.com/developer/authentication/ for parameter details."
(:require [clj-http.client :as client]))
(defn create-auth-url [client-id redirect-uri]
(str "https://api.instagram.com/oauth/authorize/?client_id=" client-id
"&redirect_uri=" redirect-uri
"&response_type=code"))
@matclayton
matclayton / FB Like
Created May 17, 2011 04:11
Tracking FB social actions
<div id="fb-root"></div>
<script>
(function() {
window.fbAsyncInit = function() {
FB.Event.subscribe('edge.create', function(response) {
_gaq.push(['_trackSocial', 'facebook', 'like', response]);
});
FB.Event.subscribe('edge.remove', function(response) {
_gaq.push(['_trackSocial', 'facebook', 'unlike', response]);
});
@botchagalupe
botchagalupe / gist:802516
Created January 30, 2011 04:05
Hack Day NYC Go Project Notes
Application to build and deploy
https://github.com/grahambrooks/bvira
Nodes
ec2-72-44-36-76.compute-1.amazonaws.com <--- Tomcat??
ec2-184-73-9-162.compute-1.amazonaws.com<--- dead
ec2-50-16-60-233.compute-1.amazonaws.com<--- Goserver