Skip to content

Instantly share code, notes, and snippets.

@exuan
exuan / llm-wiki.md
Created April 6, 2026 11:33 — 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.

@exuan
exuan / tmui4xui-init.sh
Created July 23, 2025 08:56
tmui4xui-init.sh
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <project_directory> <tmui_source_directory>"
exit 1
fi
PROJECT_DIR="$1"
TMUI_SOURCE_DIR="$2"
@exuan
exuan / For Mac 4.2.6 unlimited trial.md
Created October 15, 2024 10:48 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@exuan
exuan / .Cloud.md
Created March 31, 2023 06:44 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

{
"jckd_kkz_pro": 1,
"jckd_read_pro": 1,
"jckd_reward_pro": 1,
"jckd_timerBox_pro": 1,
"jctq_kkz_pro": 1,
"jctq_read_pro": 1,
"jctq_reward_pro": 1,
"jctq_timerBox_pro": 1,
"zqkd_kkz_pro": 1,
{
"jckd_kkz_pro": 1,
"jckd_read_pro": 1,
"jckd_reward_pro": 1,
"jckd_timerBox_pro": 1,
"jctq_kkz_pro": 1,
"jctq_read_pro": 1,
"jctq_reward_pro": 1,
"jctq_timerBox_pro": 1,
"zqkd_kkz_pro": 1,
@exuan
exuan / jrttjsb.js
Last active August 11, 2022 06:43
jrttjsb
/*
今日头条极速版
IOS/安卓: 今日头条极速版
邀请码: 1431235326
老用户每天几毛,新用户可能收益高点
普通版定时: 1-59/15 6-23 * * *
激进版定时: 1-59/5 * * * *
多用户跑的时间会久一点,自己看着改定时吧
自定义UA:捉包拿到自己的UA,填到变量jrttjsbUA里,不填默认用安卓UA
自定义每次运行阅读文章的数量:填到变量jrttjsbReadNum,不填默认10篇
cmake . -DCMAKE_INSTALL_PREFIX=/data/database/mysql \
-DWITH_BOOST=../boost_1_63_0 \
-DSYSCONFDIR=/data/database/mysql \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_FEDERATED_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DENABLE_DTRACE=0 \
@exuan
exuan / git-config-core-ignorecase.md
Created August 1, 2016 07:25
git 默认不区分文件名大小写, 被黑的欲仙欲死

git 默认不区分文件名大小写, 被黑的欲仙欲死, 需要关闭ignorecase

$ git config --global core.ignorecase false
[root@localhost ~]# /usr/local/mysql/bin/mysqlbinlog --base64-output=DECODE-ROWS -v  /data/database/3306/data/mysql-bin.000034