Skip to content

Instantly share code, notes, and snippets.

View codeprefect's full-sized avatar
💯
building saas solutions

Mubarak Imam codeprefect

💯
building saas solutions
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.

@nadiaholmquist
nadiaholmquist / 0-pam-touchid-setup.md
Last active June 26, 2024 00:09
Permanent setup for sudo with Touch ID for macOS

Permanent sudo Touch ID setup for macOS

Want to use Touch ID with sudo but annoyed that the change gets reset every time macOS updates? Here's a hacky solution to fix that!

Installation

  1. Compile pam-touchid-setup.c
    clang -o pam-touchid-setup pam-touchid-setup.c
    
@jdbrowndev
jdbrowndev / AspNetCoreExtensions.cs
Last active April 26, 2026 09:07
C# / .NET 5 - HTTP to raw string
public static class AspNetCoreExtensions
{
public static async Task<string> ToRawString(this HttpRequest request)
{
var sb = new StringBuilder();
var line1 = $"{request.Method} {request.Scheme}://{request.Host}{request.Path} {request.Protocol}";
sb.AppendLine(line1);
foreach (var (key, value) in request.Headers)