Skip to content

Instantly share code, notes, and snippets.

View KnuffigerMaxi's full-sized avatar

KnuffigerMaxi KnuffigerMaxi

View GitHub Profile
@KnuffigerMaxi
KnuffigerMaxi / llm-wiki.md
Created April 16, 2026 00:54 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@KnuffigerMaxi
KnuffigerMaxi / add_artists.sh
Created January 15, 2026 05:28 — forked from alexsleat/add_artists.sh
Script to add list of artists (in a folder) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists. This version searches MusicBrainz for the ID to use, rather than relying only on lidarr search - it then uses the lidarr:music_brainz_id method to add them, if they a…
#!/bin/bash
# Folder where existing artist folders are located (source)
source_dir="/media/old"
# The Lidarr root folder path to add new artists under
lidarr_root="/media/new"
## Note: You can use this script with the source_dir and lidarr_root dir are the same - I did and nothing broke.
@KnuffigerMaxi
KnuffigerMaxi / start.sh
Created February 9, 2024 01:52 — forked from Jackzmc/start.sh
Minecraft spigot server auto restart watchdog script.
#!/bin/bash
JAR=$(find -type f -name 'paper-*.jar' -printf %f\\n | sort | head -1)
echo Found jar: ${JAR}
while true; do
java -server -Xms1G -Xmx1G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar ${JAR}
echo "";
for i in {5..1}; do
echo "Server has stopped. Auto-restarting in $i seconds. Ctrl+C to cancel." && sleep 1;
done
sleep 1;

Keybase proof

I hereby claim:

  • I am knuffigermaxi on github.
  • I am knuffigermaxi (https://keybase.io/knuffigermaxi) on keybase.
  • I have a public key ASA0iOMASjLlvR3mkpt8Q9_l_zN9KR4ZlsryxUODwc4Lvgo

To claim this, I am signing this object: