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.

@jackblk
jackblk / disable-auto-update-android.md
Last active June 4, 2026 16:51
disable auto update on android, this is for samsung phone

This guide is for Windows.

  • Connect phone via USB to PC, wait a while for drivers to install.
  • Install "Minimal ADB Fastboot" (from XDA-Developers).
  • Enable USB DEBUG under "Config / Developer Options" on phone.
  • Open a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
  • Open phone adb shell: adb shell
  • Use the following commands:
@llelectronics
llelectronics / gist:5d7302a666175fdcaca0627960eea184
Created January 21, 2026 16:53
Xiaomi Fix notification delays HyperOS 3.0 (CN)
# Get a list of packages you want to whitelist (you can add more apps to the list if you want to for example |threema)
pm list packages -e -3 | grep -E "zalo|facebook|gm|telegram|instagram|ugc|discord|whatsapp|twitter|mastodon|sms|reddit|wechat" | sed -e "s/^package://"
# Get apps on the white list currently
cmd settings get system cloud_lowlatency_whitelist
# Write new apps to the white list
cmd settings put system cloud_lowlatency_whitelist <LIST_OF_PACKAGES_SEPARATED_BY_COMMA>
Example:

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@mlajtos
mlajtos / RemoteControl.st
Created June 3, 2026 08:41
Remote Control of Cuis Smalltalk by Claude Code
'Claude<->Cuis bridge: RemoteControl. Filed out 3 June 2026.'!
'A minimal in-image HTTP server (port 2347) exposing POST /eval and GET /screenshot, so an external agent (e.g. Claude Code, driven by curl) can evaluate Smalltalk and read the screen of a live Cuis image. Also adds ClassDescription>>safelyCompile:classified: for robust method compilation over the bridge.'!
!provides: 'RemoteControl' 1 0!
!requires: 'WebClient' 1 0 nil!
SystemOrganization addCategory: #RemoteControl!
!classDefinition: #RemoteControl category: #RemoteControl!
Object subclass: #RemoteControl
instanceVariableNames: ''
classVariableNames: 'Server'