Skip to content

Instantly share code, notes, and snippets.

@jet10000
jet10000 / llm-wiki.md
Created April 4, 2026 21:12 — 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.

@jet10000
jet10000 / microgpt.py
Created March 23, 2026 07:25 — forked from Chrisbryan17/microgpt.py
microgpt
#!/usr/bin/env python3
"""
microgpt2.py
A dependency-free, single-file GPT-style language model in pure Python.
Key properties:
- stdlib only
- explicit forward/backward kernels (no generic scalar autograd)
- flat float32 parameter buffers using array('f')
@jet10000
jet10000 / microgpt_dnb.py
Created March 6, 2026 23:08 — forked from logan-robbins/microgpt_dnb.py
microgpt_dnb — Karpathy's microgpt + Dynamic Notes Bus for parallel decoding
"""
microgpt_dnb.py — Fork of Karpathy's microgpt with Dynamic Notes Bus
Original: https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
Paper: https://arxiv.org/abs/2512.10054
Code: https://github.com/logan-robbins/parallel-decoder-transformer
Karpathy's microgpt is the complete GPT algorithm in ~200 lines of pure Python.
This fork adds ~100 lines to show where the Dynamic Notes Bus (DNB), Shared
Notes Cross-Attention (SNC), and Planner Head fit inside the transformer to
@jet10000
jet10000 / jq_jsonl_conversion.md
Created July 26, 2024 13:04 — forked from sloanlance/jq_jsonl_conversion.md
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

Prerequisites

  • jqhttps://jqlang.github.io/jq/ — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq

  1. JSONL → JSON

@jet10000
jet10000 / readme.md
Created June 22, 2023 20:41 — forked from slava-vishnyakov/readme.md
How to upload images with TipTap editor
  1. Create a file Image.js from the source below (it is almost a copy of Image.js from tiptap-extensions except that it has a constructor that accepts uploadFunc (function to be called with image being uploaded) and additional logic if(upload) { ... } else { ... previous base64 logic .. } in the new Plugin section.
import {Node, Plugin} from 'tiptap'
import {nodeInputRule} from 'tiptap-commands'

/**
 * Matches following attributes in Markdown-typed image: [, alt, src, title]
 *
@jet10000
jet10000 / https-during-dev.macos.sh
Created October 3, 2022 13:52 — forked from disintegrator/https-during-dev.macos.sh
Use Caddy, mkcert and dnsmasq to expose your development server over HTTPS
brew install caddy mkcert nss dnsmasq
mkcert -install
mkcert '*.app.test' '*.cdn.test'
# rename the certs and move them under /usr/local/etc/caddy/certs
cat <<EOF > /usr/local/etc/caddy/Caddyfile
*.app.test:443, *.cdn.test:443 {
@jet10000
jet10000 / gist:1e0ced20bbc12622de8b36be2dca0aa2
Created March 22, 2022 17:36 — forked from shaiguitar/gist:627d52ebc0c03af488477b5d636a8909
Using docker compose to mount current working directory dynamically into the container
# mount volume PWD on host to /app in container.
shai@lappy ~/tmp/example-working-docker-compose-environment-vars [master *] ± % cat docker-compose.yml
version: "3"
services:
some_server:
...
volumes:
- $PWD:/app
@jet10000
jet10000 / admin.py
Created March 20, 2022 14:37 — forked from ricardodani/admin.py
django admin textarea widget char counter
# admin
from django import admin
from django.db import models
from widget import TextareaWithCounter
class MyModelAdmin(admin.ModelAdmin):
formfield_overrides = {
models.TextField: {'widget': TextareaWithCounter},
}
class Media:
@jet10000
jet10000 / ffmpeg.md
Created November 20, 2021 08:11 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@jet10000
jet10000 / App.svelte
Created September 12, 2021 02:28 — forked from sassman/App.svelte
Timer in svelte
<script>
let s = 0;
let m = 0;
let active = false;
let timer;
function setActive(a) {
active = a;
if(!active) {
clearInterval(timer)