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.

@eddieh
eddieh / develop-an-emacs-major-mode.org
Last active August 5, 2026 19:20
Develop an Emacs Major Mode

Develop an Emacs Major Mode

Introduction

Developing an Emacs major mode is perhaps unnecessarily complex, but it offers unmatched flexibility and control.

@tsmx
tsmx / increase-efi-partition-in-dual-boot.md
Created December 4, 2024 21:24
Increasing the EFI partition in a Win 11 / Fedora 40 dual-boot scenario

Increasing the EFI partition in a Win 11 / Fedora 40 dual-boot scenario

A guide on how I did come to a proper working Win 11 / Fedora 40 dual boot setup with a right-sized EFI partition. Hope that helps :)

Windows and Linux dual-boot setup

In most Windows/Linux dual-boot setups it is very likely you had first installed Win 11 (or any other Windows version) on your machine. Typically you'll then shrink down the existing Windows partition from the right end side to create some unpartitioned space for the Linux installation. This could easily be done with Windows built-in harddisk manager tool. Then install Linux in the free space and use GRUB2 as the bootloader.

I previously did this procedure again on a new PC having Win 11 preinstalled. Made up some space as described above and installed Fedora 40 with GRUB2. Works like a charm.

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@rmehner
rmehner / delete-databases.js
Last active August 5, 2026 19:13
Delete all indexedDB databases
// Credit to @steobrien from https://gist.github.com/rmehner/b9a41d9f659c9b1c3340#gistcomment-2940034
// for modern browsers, this works:
const dbs = await window.indexedDB.databases()
dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) })
// for older browsers, have a look at previous revisions of this gist.
@k16shikano
k16shikano / SKILL.md
Last active August 5, 2026 19:11
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@NeuroWinter
NeuroWinter / ffmpeg cheatsheet for glitching
Last active August 5, 2026 19:11
ffmpeg cheatsheet for glitching
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\
Convert image to jpeg2000
ffmpeg -i in.png -c:v libopenjpeg out.jp2
Hex Edit out.jp2
ffmpeg -i in.jp2 -c:v png out.png
General Edit
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi
*edit in avidemux/whatever*
@dylanleclair1
dylanleclair1 / libngu-one-key-two-names.md
Last active August 5, 2026 19:08
switck/libngu — one key, two names. Runnable proof: live GitHub API + local git verify-commit across all 129 commits.

switck/libngu — one key, two names

Status: verified, independently reproduced · Run the proof: bash verify.sh

This gist contains one script and this explanation. The script prints only facts: JSON fetched live from the GitHub API, and GPG signature verification performed locally on your machine. The script draws no conclusion. This file does not state one either — it lays out the data, then works through the explanations that could account for it and why they do not fit.