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.

//login
//setting up parameters for login method
User_auth auth = new User_auth();
auth.setUser_name(USER_NAME);
auth.setPassword(PASSWORD);
//sending an empty name_value_list
Name_value nameValueListLogin[] = null;
//trying to login
@JT5D
JT5D / index.html
Created December 6, 2013 01:35 — forked from igrigorik/index.html
<!doctype html>
<html>
<head>
<script type="text/javascript">
function onOload() {
console.log('window onload');
// download script after onload
// - should not block onload from firing
var element = document.createElement("script");
@jarcento
jarcento / flac_to_mp3_converter.sh
Last active November 23, 2026 09:18
Convert FLAC audio files to MP3 using ffmpeg
#!/usr/bin/env bash
# ============================================================
# FLAC → MP3 Converter (parallel, in-place, cover-art safe)
#
# Usage:
# ./flac_to_mp3_converter.sh "/path/to/music" [options]
#
# Options:
# -b, --bitrate KBPS CBR bitrate for libmp3lame, e.g. 320 (default: 320)
@z5ottu
z5ottu / PS4 PKGs CUSA1-10000.csv
Created May 25, 2025 22:25 — forked from hosamn/PS4 PKGs CUSA1-10000.csv
PS4 - Single PKG Downloads - CUSA1-10000
We can't make this file beautiful and searchable because it's too large.
Parental Level,Game Title,File Offset,PlayStation PRO Support,Current Version,Instant Download,Package Size,PlayStation VR,Piece,SHA1 Hash,Title ID,Play Together
3,THE PLAYROOM,0,No,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00001_00/9/f_ef965b581d35637dabc96366f29f1f0ece58c8fa9158b0eb7de9407ae72272e8/f/IP9100-CUSA00001_00-PLAYROOM00000000-A0107-V0100.pkg,34.9MB,No,0,22774b6c655f47dffce0eb7e15c5e865dce6a849,CUSA00001_00,
9,KILLZONE SHADOW FALL,0,No,1.81,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00002_00/58/f_0882efa770fbf5b9a03b4decce248e8f07fd9585cbe43c44791799952c62fd14/f/EP9000-CUSA00002_00-KZ4RELEASE000041-A0181-V0100.pkg,2.9GB,No,0,552b7127dac3ee8ab5ce2ae051f6436c3ec605fc,CUSA00002_00,
7,inFAMOUS Second Son,0,Yes,1.07,http://gs2.ww.prod.dl.playstation.net/gs2/ppkgo/prod/CUSA00004_00/28/f_2881c3732328a643917aeb4c1e73b916c1d6baa7ea09e2e81f33d5f139ea9449/f/EP9000-CUSA00004_00-SECONDSONSHIP000-A0107-V0100.pkg,3.7GB,No,0,0538bdff843286013877ab92e5dc936b1407ddcb,CUSA00004_00,
@tomazas
tomazas / http_server.py
Last active November 23, 2026 08:38
Python 3 multi-threaded HTTP server implementing GET & POST on port 8080
# Python 3 multi-threaded HTTP server implementing GET & POST on port 8080
# Tested using Python 3.10.1
# run using below run.sh bash script:
'''
#!/bin/bash
nohup /usr/bin/python -u http_server.py > server.log 2>&1 &
echo $! > pid
'''
@sedm0784
sedm0784 / CapsLockCtrlEscape.ahk
Last active November 23, 2026 08:17
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
"""Recover Hikari AArch64 indirect control flow with PREOPT microcode.
Patch one-way BRs to B, model two-way BRs as synthetic switches, expand function ranges until the CFG reaches a fixed point, then restore conditional branches through the F5 hook.
Requires IDA Pro 9.4+, Hex-Rays, and keystone-engine; load the script and choose "deobfuscate it" or call recover_current_function(), with changes saved only to the IDB and reversible through rollback_function().
Thanks to Hex-Rays for sponsoring the r3kapig team!
"""
from __future__ import annotations
@fundottz
fundottz / router-config.json
Created May 20, 2026 19:41
sing-box router config for GL-SFT1200
{
"log": {
"level": "warn",
"output": "/var/log/sing-box.log"
},
"experimental": {
"cache_file": {
"enabled": true,
"path": "/etc/sing-box/cache.db"
}