Skip to content

Instantly share code, notes, and snippets.

@tracend
tracend / .readme.md
Last active May 3, 2026 12:41
Ubuntu Macbook - Notes
"""
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

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.

W3siaWQiOiJ1bnRyYXBfb3B0aW9uc19zdGF0ZSIsInZhbHVlIjp7InVudHJhcF9jaGFubmVsX2hpZGVfYnV0dG9uX2pvaW4iOnRydWUsInVudHJhcF9jaGFubmVsX2hpZGVfYnV0dG9uX3B1cmNoYXNlIjp0cnVlLCJ1bnRyYXBfY2hhbm5lbF9oaWRlX2NoYW5uZWxfYmFubmVyIjp0cnVlLCJ1bnRyYXBfY2hhbm5lbF9oaWRlX2NoYW5uZWxfbWVudV9idXR0b25fc2hvcnRzIjp0cnVlLCJ1bnRyYXBfY2hhbm5lbF9oaWRlX2hvbWVfdGFiX3NlY3Rpb25fb3VyX21lbWJlcnMiOnRydWUsInVudHJhcF9jaGFubmVsX2hpZGVfaG9tZV90YWJfc2VjdGlvbl9zaG9ydHMiOnRydWUsInVudHJhcF9nbG9iYWxfZGlzYWJsZV92aWRlb19hdXRvcGxheSI6dHJ1ZSwidW50cmFwX2dsb2JhbF9oaWRlX2FsbF9hZHMiOnRydWUsInVudHJhcF9nbG9iYWxfaGlkZV9hbGxfc2hvcnRzIjp0cnVlLCJ1bnRyYXBfZ2xvYmFsX3ZpZGVvX3F1YWxpdHkiOiJoZDE0NDAiLCJ1bnRyYXBfaGVhZGVyX2hpZGVfY3JlYXRlX2J1dHRvbiI6dHJ1ZSwidW50cmFwX2hlYWRlcl9oaWRlX25vdGlmaWNhdGlvbnNfYmVsbCI6dHJ1ZSwidW50cmFwX2hlYWRlcl9oaWRlX3VwbG9hZF9idXR0b24iOnRydWUsInVudHJhcF9oZWFkZXJfaGlkZV92b2ljZV9zZWFyY2hfYnV0dG9uIjp0cnVlLCJ1bnRyYXBfaG9tZV9oaWRlX2Fkc19maXJzdF9zbG90Ijp0cnVlLCJ1bnRyYXBfaG9tZV9oaWRlX2Jhbm5lcnNfYWRzX3dpdGhfY2xvc2UiOnRydWUsInVudHJhcF9ob21lX2hpZGVfaGVhZGVyX3dpdGhfY2F0
@greenchapter
greenchapter / gist:d1a2f42fa5b97cd753ac795fdb73383c
Last active May 3, 2026 12:38
Export Safari Reading List
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' > ~/Documents/safari-readinglist.txt
@koorukuroo
koorukuroo / news_rss.py
Last active May 3, 2026 12:37
Korean News RSS URLs
### 출처
# http://blog.opid.kr/427
# 400, 403, 404 에러가 없는 url만 간추림
### 언론사 리스트
# 중앙일보 | 구글뉴스 | 에이빙뉴스 | 중부매일 | 에버뉴스 |
# 경향닷컴 | 데이터넷 | 세계일보 | 뉴스위드 | 뉴스포스트 |
# 르몽드 디플로마티크 | 컨슈머타임스 | MBC | 한국아이닷컴 | 노컷뉴스 |
# K모바일 | 탑라이더 | 한국경제 | 동아닷컴 | 엑스포저널 |
@Gezine
Gezine / p2jb.c
Created May 2, 2026 17:15
PS5 12.70 kernel ucred reference leak leads to UAF
/*
Copyright (C) 2026 Gezine
This software may be modified and distributed under the terms
of the MIT license.
P2JB (Patience to Jailbreak)
Bug was patched at PS5 13.00
@bluelovers
bluelovers / ImageTweak_SC.user.js
Last active May 3, 2026 12:30
ImageTweak_SC.user.js
// ==UserScript==
// @name ImageTweak SC
// @namespace bluelovers
// @author bluelovers
//
// @downloadURL https://gist.github.com/bluelovers/5186199/raw/ImageTweak_SC.user.js
// @updateURL https://gist.github.com/bluelovers/5186199/raw/ImageTweak_SC.user.js
//
// @include *://exhentai.org/*
// @include *://g.e-hentai.org/*