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.

@cednore
cednore / ubuntu.md
Last active January 9, 2025 09:18
My personal environment setup guide on Ubuntu
@seanmhanson
seanmhanson / Instant Pot Bubur Ayam
Created August 23, 2021 00:16
Recep Instant Pot Bubur Ayam
# Instant Pot Bubur Ayam (Chicken Coconut Congee)
Adapted from:
- Instant Pot Congee, [Budget Bytes](https://www.budgetbytes.com/instant-pot-congee-jook/)
- Bubur Ayam, from *Coconut & Sambal*, Lara Lee
- Nasi Uduk, from *Coconut & Sambal*, Lara Lee
## Ingredients
### Congee & Base
- 1 cup jasmine rice
- 1in ginger, peeled and thinly sliced
@rafi
rafi / k3d-keycloak.md
Last active May 25, 2025 19:16
Keycloak and oauth2-proxy using k3d & ngrok:

K3d and Keycloak

Prerequisites

Ensure docker, k3d and ngrok are installed.

brew update
brew install --cask docker ngrok
brew install k3d
# Source: https://gist.github.com/a63a6970c46a2b08beb283a5b1f03b7c
####################
# Create a Cluster #
####################
# Install AWS IAM Authenticator: https://github.com/awsdocs/amazon-eks-user-guide/blob/master/doc_source/install-aws-iam-authenticator.md
# Only if you did not yet clone that repository
git clone \
@janeczku
janeczku / rancher-argocd.md
Created June 10, 2020 14:10
How to register Rancher managed Kubernetes clusters in Argo CD

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

@mikaelvesavuori
mikaelvesavuori / vs-code-in-google-cloud-shell.sh
Created November 30, 2019 15:48
Visual Studio Code in Google Cloud Shell
# Use Visual Studio Code in Google Cloud Shell
# As posted at: https://medium.com/google-cloud/how-to-run-visual-studio-code-in-google-cloud-shell-354d125d5748
# Export version variable
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
# Download
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server$VERSION-linux-x64.tar.gz
# Unzip
@manparvesh
manparvesh / git-cleanup.sh
Created June 2, 2019 04:51
Git remove all commits except the current one
#!/usr/bin/env bash
rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin <git origin url>
git push -u --force origin <branch>
@thomasdarimont
thomasdarimont / app.py
Last active August 18, 2025 13:55
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)