npm install --save-dev vitest jsdom- React Testing Library
npm install --save-dev vitest jsdomA 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.
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.
| import os | |
| import struct | |
| import shutil | |
| import argparse | |
| # ANSI color codes | |
| GREEN = '\033[92m' | |
| YELLOW = '\033[93m' | |
| RED = '\033[91m' | |
| RESET = '\033[0m' |
Resume claude after running out of usage limit. For Macos, it uses the automation scripts to resume usage.
For instance if your usage resets at 3pm
./resume_claude.sh "15:00"
| copy ( | |
| select | |
| "json" | |
| from _duckdb_ui.notebook_versions | |
| where 1=1 | |
| and title = 'MySingleNotebook' | |
| and expires is null | |
| ) to 'exported-notebook.json'; |
| http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_gcide-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_wn-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd-moby-thesaurus-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd-web1913-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_elements-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd-vera-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd-jargon-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_foldoc-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd-easton-2.4.2.tar.bz2 | |
| http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_hitchcock-2.4.2.tar.bz2 |
| -module(systemd). | |
| % This is what you need to adopt systemd in erlang | |
| % | |
| % Do whatever you want license. If you want, you can take this code under terms of MIT license. | |
| -export([ready/0, reloading/0, stopping/0, watchdog/0]). | |
| -export([start_link/0]). | |
| -export([init/1, handle_info/2, terminate/2]). |