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.

@pilalouis
pilalouis / giftCardGenerator.py
Created July 21, 2020 18:47
A gift card generator. The script generates the specified number of gift card numbers for a particular company and stores them in a text file.
import random
from random import randint
import time
gentype = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
print("Hello To Multipe Gift Card Generator")
total = input("How Many Would You Like To Generate? ")
#Number To Generate
number = int(total)
file = (total + " Generated By Multipe Gift Card Generator.txt")
file2 = 'GiftCardsCodes.txt'
@bossmann47
bossmann47 / bypass.md
Last active September 26, 2026 22:56
Bypass Discord Age Verification

Important

This process has been confirmed to work on Android using Firefox Mobile. It is unknown if this method works on other mobile browsers (like Chrome or Safari) due to varying support for extensions and camera overrides.

💻 Phase 1: PC Configuration

  1. Log in to Discord via your desktop web browser.

  2. Open the Developer Tools by pressing Ctrl + Shift + I.

  3. Navigate to the Console tab.

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@sfan5
sfan5 / alpine-container.sh
Last active September 26, 2026 21:06
Create bootable systemd-nspawn containers with Alpine, Arch Linux or Ubuntu
#!/bin/bash -e
# Creates a systemd-nspawn container with Alpine
MIRROR=http://dl-cdn.alpinelinux.org/alpine
VERSION=${VERSION:-v3.24}
APKTOOLS_VERSION=3.0.6-r0
wget_or_curl () {
if command -v wget >/dev/null; then
@sumitsahoo
sumitsahoo / remove_dock_delay.sh
Last active September 26, 2026 20:45
Remove dock delay in macOS
# Remove delay
defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0 && killall Dock
# Faster animation
# defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.65 && killall Dock
# Revert back
# defaults delete com.apple.dock autohide && defaults delete com.apple.dock autohide-delay && defaults delete com.apple.dock autohide-time-modifier && killall Dock
@ianrodrigues
ianrodrigues / phpstan.neon
Created September 26, 2026 11:07
PHPStan leveraging `spaze/phpstan-disallowed-calls`
includes:
- vendor/larastan/larastan/extension.neon
- vendor/nesbot/carbon/extension.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
phpVersion: 80500
checkAuthCallsWhenInRequestScope: true
checkConfigTypes: true
parseModelCastsMethod: true
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active September 26, 2026 20:16
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@nexpr
nexpr / readme.md
Created July 20, 2019 04:54
koa のルーティングミドルウェア

koa のルーティングミドルウェア

使い方

routes(route_config)

route_config : オブジェクトの配列

  • path : マッチするパス (配列可)
    • 正規表現 or 文字列