Skip to content

Instantly share code, notes, and snippets.

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.

@mmozeiko
mmozeiko / build.cmd
Last active August 30, 2026 07:10
download & build llvm+clang on Windows
@echo off
setlocal enabledelayedexpansion
rem !!! build requirements !!!
rem Visual Studio 2022 - https://visualstudio.microsoft.com/vs/
rem 7-Zip - https://www.7-zip.org/download.html
rem Python - https://www.python.org/downloads/
rem CMake - http://www.cmake.org/download/
rem ninja.exe - https://github.com/ninja-build/ninja/releases/latest
@JoeGermuska
JoeGermuska / fix_instagram_export.py
Last active August 30, 2026 07:08
Instagram data export: why single-image posts show 'Invalid date' (and why posts.json timestamps are unreliable)
#!/usr/bin/env python3
"""
Fix dates in an Instagram data export.
Instagram writes the post-level `creation_timestamp` in posts_1.json only for
multi-image (carousel) posts. Single-image posts carry the date one level down,
in media[0], which makes many importers show "Invalid date". Captions have the
same problem: for single-image posts the caption lives in media[0].title.
This script rewrites the export's JSON so both fields are present at the post
@niw
niw / EPaperNFCProtocol-ja.md
Last active August 30, 2026 07:08
400x300 4-Color e-Paper NFC Protocol

NFC で書き換えられる電子ペーパーのプロトコル

いま巷で話題の NFC で書き換えできる名札サイズの電子ペーパーのプロトコルを調べました。 @alt-coreさんの追加の調査も参考にしています。

実装

# -----------------------------------------------------------------------------
# Database (PostgreSQL)
# -----------------------------------------------------------------------------
DATABASE_URL=postgresql://postgres:password@localhost:5432/workspace-kit
# -----------------------------------------------------------------------------
# JSON Web Token Credentials
# -----------------------------------------------------------------------------
JWT_SECRET_KEY=my_ultra_secure_jwt_secret_key
JWT_MAXAGE=86400

LunaRegi 利用者向け簡易マニュアル

ヤオヨロー! LunaRegi は同人イベント等での頒布オペレーションを支援するウェブアプリです。

特徴

  • PWA(ホーム画面に追加してアプリのように起動)として利用できます。
  • 頒布記録の保存・レシート印刷などの主要な機能はインターネット接続がない場合でも動作するよう設計されています。
  • あくまで頒布数の記録に特化したスピード重視のアプリです。お釣り計算などはあえて実装されていません。
@angelo-swe
angelo-swe / repo-series.md
Last active August 30, 2026 07:52
The Repo List — every repo from my series, kept updated
@AbiruzzamanMolla
AbiruzzamanMolla / A History of the Egyptian Intelligence Service: A History of the Mukhabarat, 1910–2009.md
Created August 30, 2026 07:02
A History of the Egyptian Intelligence Service: A History of the Mukhabarat, 1910–2009

মিশরের গোপন সাম্রাজ্য

১৯১০ থেকে ২০০৯: মুকাবারাতের একশ বছরের ইতিহাস

ভূমিকা

একটি রাষ্ট্রকে বোঝার জন্য আমরা সাধারণত তার সংবিধান, সংসদ, সেনাবাহিনী, রাজনৈতিক দল কিংবা নির্বাচনের ইতিহাস দেখি।

কিন্তু মধ্যপ্রাচ্যের বহু রাষ্ট্রের ইতিহাসে এমন একটি প্রতিষ্ঠান আছে, যার উপস্থিতি প্রায় সর্বত্র, অথচ যার সম্পর্কে প্রকাশ্যে সবচেয়ে কম জানা যায়।