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.

@potat-dev
potat-dev / traefik-setup.md
Created May 22, 2026 22:16
Simple Traefik Wildcard Templated Setup

File structure

/root/traefik
├── .env
├── compose.yml
├── services
│   ├── common
│   │   ├── headers.yml
│   │   └── middlewares.yml
@pbarone
pbarone / unraid-nfs-configuration.md
Created September 2, 2025 15:21
UNRAID NFS Configuration Guide

UNRAID NFS Configuration Guide - Complete Issue Resolution

Executive Summary

This document details the investigation, root cause analysis, and resolution of recurring NFS stale file handle issues in a home lab environment with UNRAID NAS and multiple Linux clients. The solution involved migrating from static NFS mounts to systemd automount configuration, eliminating stale handle problems while maintaining full container compatibility.

Environment Overview

Infrastructure

  • UNRAID Server: unraid-server (192.168.1.100) - Primary NAS with NFS exports
@lukas-h
lukas-h / license-badges.md
Last active May 22, 2026 22:17
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

How to install Homebrew package manager on Steam Deck

(See also installing Distroboxm, which is included in SteamOS 3.5 and newer: https://distrobox.it/ )
(See also installing Nix package manager: https://determinate.systems/posts/nix-on-the-steam-deck )

You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.

  1. Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
  2. Click the logo at the bottom left, go to System, then go to Konsole
@brandonros
brandonros / gist:4aa6ae51d0f925671d034446947df555
Last active May 22, 2026 22:07
BMW UDS function descriptions
10 01;setDefaultSession
10 02;setProgrammingSession
10 03;setExtendedDiagnosticSession
11 01;hardReset
14 FF FF FF,31 01 0F 06,31 01 40 00 00,31 01 40 00 05,31 01 40 00 01;Clear all DTCs (clear DTC,clear Infospeicher,ZFS ***8211; DM_Lock,clear ZFS ***8211; DM_Clear,ZFS ***8211; DM_Unlock)
14 FF FF FF;Clear DTC
19 02 0C;ReadDTC(0C)
19 0A;ReadSupportedDTC
22 10 0A;readEnergyMode
22 10 0E;readExtendedMode
@evilsocket
evilsocket / security_code_audit.md
Created May 17, 2026 17:40
security code audit

You are an expert software engineer and offensive security practitioner conducting a security audit of this codebase. Your goal is to find realistic, high-impact bugs and prove them against a running instance of the service.

Scope of interest (critical / high severity only)

  • Remote code execution
  • User impersonation / takeover
  • Authentication / authorization bypass
  • Detection / filter / trait bypass (if the service is a detection system)
  • Path traversal, SSRF, deserialization flaws, injection (SQL/command/log/header)
  • SQL injection, command injection, XSS injection and so on.
@trietptm
trietptm / Computer Science Tools, Books & Articles.md
Last active May 22, 2026 21:57
Computer Science Tools, Books & Articles

BOOKS:

  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • Computer Systems: A Programmer's Perspective, 3 Edition [Randal E. Bryant, David R. O'Hallaron]
  • Code: The Hidden Language of Computer Hardware and Software [Petzold, Charles]
  • How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine [Justice, Matthew]
  • How the Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance [Article 19, Knodel, Mallory, Uhlig, Ulrike, ten Oever, Niels, Cath, Corinne]
  • How Software Works: The Magic Behind Encryption, CGI, Search Engines, and Other Everyday Technologies [Spraul, V. Anton]
  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • How Cybersecurity Really Works: A Hands-On Guide for Total Beginners [Grubb, Sam]
@webern
webern / docker-commands.md
Last active May 22, 2026 21:56
Nuke Docker from Orbit

You can double-check the docker data directory with this, but I considered too dangerous to include in the rm -rf command.

docker info | grep 'Docker Root Dir' | grep -oE '/.*'

Nuke Docker from Orbit

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 22, 2026 21:53
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md