Skip to content

Instantly share code, notes, and snippets.

View zachwhaley's full-sized avatar
🐳
Hi!

Zach Whaley zachwhaley

🐳
Hi!
View GitHub Profile

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.

@LynnAU
LynnAU / README.md
Last active September 12, 2025 07:41
Azure Container App - Provisioning Managed certificates for custom domains

Azure Container App - Custom Domain Managed Certficate scripts

This gist contains a create and destroy script to provision and cleanup custom domains and managed certficates assigned to Azure Container Apps.

This gist supports the following workflow:

  • Bind custom domain to existing Container App
  • Provision a managed certificate for the custom domain
  • Bind the managed certificate to the custom domain
@Graham42
Graham42 / map-filter-reduce-example.groovy
Last active November 15, 2024 12:31
Groovy example for map, filter, reduce
// In Groovy
// collect = "map"
// inject = "reduce"
//
// See http://docs.groovy-lang.org/next/html/documentation/working-with-collections.html for docs
////////////////////////////////////////////////////////////////////////////////
// Arrays
def myNumbers = [3, 5, 1]
@jackcarter
jackcarter / slack_delete.py
Last active September 7, 2025 07:08
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
#Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():
@gene1wood
gene1wood / all_aws_lambda_modules_python.md
Last active February 5, 2026 21:28
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7
@jamescmartinez
jamescmartinez / slack_delete.rb
Last active March 14, 2025 19:45
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from https://api.slack.com/web#authentication into the token quotes at the top of the file.
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,
@konklone
konklone / Makefile
Created October 10, 2014 14:19
building openssl with FIPS
#
all: test
openssl-fips-2.0.8.tar.gz:
wget http://www.openssl.org/source/openssl-fips-2.0.8.tar.gz
openssl-1.0.1i.tar.gz:
wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz
@anowell
anowell / git-ship
Last active May 29, 2020 07:32
A git script to accommodate my workflow of merging (or rebasing) a particular feature branch into master: pull master, optionally rebase the feature branch, merge back to master, push, and finally remove branch.
#!/bin/sh
#
# My workflow:
# git checkout -b myfeature
# ...edit stuff...git commit...edit stuff...git commit...ready to ship...
# git ship myfeature -rpd
#
# It exits if the merge or rebase requires intervention,
# for merge: fix the conflict, commit the merge, and re-run the git ship command
# for rebase: clean up the conflict, run `git rebase --continue` and then re-run the git ship command
@nicolashery
nicolashery / solarized-dark.css
Last active March 25, 2026 19:32 — forked from scotu/solarized.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
anonymous
anonymous / solution.java
Created December 4, 2012 19:18
Facebook hiring questions
import java.util.*;
public class Solution{
public final static int MAX_NUMBER_OF_STATES = 390625;//5^8
class State{
int steps;
int[] conf;
int peg1, peg2;
int prev;