Skip to content

Instantly share code, notes, and snippets.

View ripperhe's full-sized avatar
🌝
专注

ripperhe

🌝
专注
  • Beijing China
View GitHub Profile

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.

@lltx
lltx / terminal-setup.md
Last active November 17, 2026 02:58
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

验证环境(2026-10-28):macOS 15.6.1、Zsh 5.9、Ghostty 1.4.0、Yazi 26.1.22。Yazi 配置已在本机读取核验。 Zoxide 和 Oh-My-Zsh 未做版本兼容性验证。

📦 工具列表

| 工具 | 用途 |

@onevcat
onevcat / Default.swift
Created November 10, 2020 03:56
Sample code of using Default to decode a property to the default value
import UIKit
protocol DefaultValue {
associatedtype Value: Decodable
static var defaultValue: Value { get }
}
@propertyWrapper
struct Default<T: DefaultValue> {
var wrappedValue: T.Value
@software-mariodiana
software-mariodiana / date_surprise.m
Last active December 3, 2020 10:07
Date localization does unexpected things if all you're familiar with is U.S. dates.
// iPhone settings: "Denmark" for region and "Buddhist" for calendar.
NSDate* now = [NSDate date];
NSDateFormatter* df = [[NSDateFormatter alloc] init];
df.timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
df.timeStyle = NSDateFormatterMediumStyle;
df.dateStyle = NSDateFormatterShortStyle;
// Date: 30/10/2563 BE, 14.32.18
NSLog(@"Date: %@", [df stringFromDate:now]);
@dimitribouniol
dimitribouniol / Bump Project Version.sh
Last active December 10, 2023 02:00
Automatically Bump Versions in Xcode
cd "${PROJECT_DIR}"
# Make sure working directory is clean.
if output=$(git status --porcelain) && [ -n "$output" ]; then
echo "error: Please commit any uncommitted files before proceeding:\n$output"
exit 1
fi
# Make sure we are on master (and not a feature branch, for instance)
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
@IsaacXen
IsaacXen / README.md
Last active July 18, 2026 12:57
(Almost) Every WWDC videos download links for aria2c.
@JunyuKuang
JunyuKuang / UIResponder+performWindowDrag.swift
Last active November 2, 2023 23:32
Customize/extend the window draggable area of your Mac Catalyst app.
//
// UIResponder+performWindowDrag.swift
// JonnyUtility
//
// Created by Jonny Kuang on 10/7/19.
// Copyright © 2019 Junyu Kuang <lightscreen.app@gmail.com>. All rights reserved.
//
import UIKit
//
// LNATextField.swift
// LonaStudio
//
// Created by Devin Abbott on 11/1/18.
// Copyright © 2018 Devin Abbott. All rights reserved.
//
import AppKit
import Foundation
@freak4pc
freak4pc / UIImage+QR.swift
Created August 26, 2018 08:37
Detect text messages from QR code
extension UIImage {
func parseQR() -> [String] {
guard let image = CIImage(image: self) else {
return []
}
let detector = CIDetector(ofType: CIDetectorTypeQRCode,
context: nil,
options: [CIDetectorAccuracy: CIDetectorAccuracyHigh])