Skip to content

Instantly share code, notes, and snippets.

@roktas
roktas / llm-wiki.md
Created June 12, 2026 17:00 — 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.

@roktas
roktas / bisac.csv
Created August 25, 2025 07:58 — forked from pgaskin/bisac.csv
Code Description Comment
Complete BISAC Subject Headings List, 2021 Edition Generated on 2022-02-03T17:00:35.308Z from https://bisg.org/page/BISACEdition
ANT000000 Antiques & Collectibles / General
ANT056000 Antiques & Collectibles / Advertising
ANT001000 Antiques & Collectibles / Americana
ANT002000 Antiques & Collectibles / Art
ANT003000 Antiques & Collectibles / Autographs
ANT005000 Antiques & Collectibles / Books
ANT006000 Antiques & Collectibles / Bottles
ANT007000 Antiques & Collectibles / Buttons & Pins
@roktas
roktas / gist:4f10793e8a3772b5a10e2cc7e9005528
Created October 17, 2023 12:02 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
@roktas
roktas / stub.rs
Created January 30, 2022 17:44 — forked from iximeow/stub.rs
glue between nasm and exec
use std::io::Write;
use std::process::Command;
extern "C" {
fn mprotect(addr: *const u8, len: usize, prot: u32) -> u32;
}
fn main() {
let mut args = std::env::args();
let _ = args.next();
@roktas
roktas / calendar_title.rb
Created November 22, 2018 10:23 — forked from ecmelkytz/calendar_title.rb
Calender event concern
# frozen_string_literal: true
class CalendarTitle < ApplicationRecord
include EventTitle
# search
include PgSearch
pg_search_scope(
:search,
against: %i[name],
@roktas
roktas / calendar_event.rb
Created November 21, 2018 12:48
Akademik takvim tarih aralıkları
class CalendarEvent < ApplicationRecord
def proper_range?
Time.zone.now >= start_date && Time.zone.now <= end_date
end
end
@roktas
roktas / TODO.md
Last active January 9, 2017 19:53 — forked from huseyin/TODO.md
  • a task list item
  • list syntax required
  • normal formatting, @mentions, #1234 refs
  • incomplete
  • completed
@roktas
roktas / Makefile
Created October 24, 2015 10:40 — forked from anonymous/Makefile
html: bar.html
%.html: %.md
pandoc $< -o $@
pdf:
pandoc bar.md -o bar.pdf
clean:
rm -f *.html *.pdf
@roktas
roktas / main.go
Last active August 29, 2015 14:27 — forked from TheHippo/main.go
Benchmarking Go Mutex overhead
package main
import (
"fmt"
"sync"
)
type unlocked struct {
i int
}
from random import randrange
import time
def kelime2():
puan=0
list1=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','r','s','t','u','v','w','x','y','z']
list2=['a','a','a','a','a','a','a','a','a']
list3=['a','a','a','a','a','a','a','a','a']