Skip to content

Instantly share code, notes, and snippets.

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.

@cgillinger
cgillinger / kindle-library-exporter.js
Last active August 1, 2026 20:29
Kindle Library Exporter – Export Kindle Library as CSV from read.amazon.com
/**
* 📚 Kindle Library Exporter + ISBN Lookup 📚
*
* This script extracts book data (ASIN, Title, Authors) from https://read.amazon.com/kindle-library
* and searches for ISBN using Open Library API. The data is exported as a CSV file.
*
* 🚨 IMPORTANT: YOU MUST USE GOOGLE CHROME 🚨
* 🛑 Why Google Chrome?
* - Amazon Kindle Library uses advanced security restrictions.
* - Other browsers (Firefox, Edge, Safari) may block access to book data due to security policies.
@1wheel
1wheel / README.md
Last active August 1, 2026 20:29
wiki-years
@snarkbait
snarkbait / Day3.java
Last active August 1, 2026 20:25
Advent of Code 2017 - Day 3
package Advent2017;
import util.Direction;
import util.Node;
import util.Timer;
import java.util.*;
public class Day3 {
@grugq
grugq / gist:03167bed45e774551155
Last active August 1, 2026 20:16
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@almahmudbd
almahmudbd / free-ai-api.md
Last active August 1, 2026 20:15
Free Ai Api keys and credits for agentic coding.

Free AI API Keys for Agentic Coding

Usage Tips

  • Do not subscribe to every service at once. Most free credits expire quickly. Test them one by one and move to the next when your current credits run out.
  • Register, verify your account, and claim your credits. Follow each platform’s documentation to connect your coding tools.
  • Keep your API keys private. Do not share them publicly. (save or star this gist for future update)

Top Sites in This Genre

@zhangqifan
zhangqifan / AnimatedGlyphLabel.swift
Created August 1, 2026 09:24
AnimatedGlyphLabel — a single-line UIKit label that transitions text one glyph at a time (CoreText layout, per-glyph spring + gaussian blur stagger). Self-contained, iOS 13+, zero dependencies.
#if os(iOS)
import CoreImage
import CoreImage.CIFilterBuiltins
import CoreText
import UIKit
/// A single-line UIKit label that transitions text one glyph at a time.
///
/// The intrinsic content size follows the current text. Glyphs are laid out
/// individually from the leading edge, which suits short strings such as