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.

@mvaisakh
mvaisakh / Bringup.md
Last active May 18, 2026 02:51
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

import axios from "axios";
import crypto from "node:crypto";
import fs from "node:fs/promises";
import { wrapper } from "axios-cookiejar-support";
import { CookieJar } from "tough-cookie";
const BASE_URL = "https://lynote.ai";
const API = `${BASE_URL}/api/ai-detect-service/humanizer`;
const REFERER = `${BASE_URL}/id/ai-humanizer`;
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@fathulfahmy
fathulfahmy / xfce-i3-guide.md
Last active May 18, 2026 02:28
A guide on how to setup XFCE with i3wm

How to XFCE with i3WM

Download

  1. Download XFCE Distribution
  2. Download i3 only (i3 status i3 lock dmenu is not needed)

Warning

Do not install preconfigured or distributed i3wm to avoid conflicts with XFCE settings
✅ Do sudo dnf install i3 --setopt=install_weak_deps=False
❎ Don't sudo dnf install i3 desktop or sudo dnf install @i3-desktop-environment