Skip to content

Instantly share code, notes, and snippets.

@HarrisChu
HarrisChu / llm-wiki.md
Created April 9, 2026 03:28 — 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.

@HarrisChu
HarrisChu / graceful_shutdown.java
Created August 28, 2018 09:22
graceful shutdown
package io.harrischu.test;
import org.apache.catalina.connector.Connector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
🎨 - :art: - Improving structure / format of the code.
⚑️ - :zap: - Improving performance.
πŸ”₯ - :fire: - Removing code or files.
πŸ› - :bug: - Fixing a bug.
πŸš‘ - :ambulance: - Critical hotfix.
✨ - :sparkles: - Introducing new features.
πŸ“ - :memo: - Writing docs.
πŸš€ - :rocket: - Deploying stuff.
πŸ’„ - :lipstick: - Updating the UI and style files.
πŸŽ‰ - :tada: - Initial commit.
@HarrisChu
HarrisChu / py_selenium.py
Last active July 12, 2018 09:35
Launch handless Chrome in linux
from selenium import webdriver
option = webdriver.ChromeOptions()
option.add_argument('headless')
option.add_argument('no-sandbox')
option.add_argument('disable-gpu')
driver = webdriver.Chrome(chrome_options=option)
driver.get('http://www.douban.com')
driver.save_screenshot('harris.png')
@HarrisChu
HarrisChu / busybox-extras-install.txt
Created June 26, 2018 03:37 — forked from ollieparanoid/busybox-extras-install.txt
Alpine Linux: busybox-extras install/uninstall
Related to this pull-request:
https://github.com/alpinelinux/aports/pull/1092
Steps:
1. upgrade busybox to the one, which has busybox-extras
2. telnet does not exist anymore
3. add busybox-extras
4. telnet exists
5. uninstall busybox-extras and re-install busybox
6. telnet does not exist anymore
@HarrisChu
HarrisChu / gist:0b07f220b99eb6dc329b228dc95be121
Created March 19, 2018 07:13 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: