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.

Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@devasur
devasur / claude-quota-statusline-prompt.md
Last active May 28, 2026 16:31
Claude Code statusline: graphical quota + pace indicator

Claude Code statusline: graphical quota + pace indicator

Paste the prompt below into Claude Code. It will modify ~/.claude/statusline-command.sh (creating it if needed) and wire it into ~/.claude/settings.json so your statusline shows your Claude.ai subscription quota usage with a graphical bar and a pace tick that tells you whether you're burning through quota faster than the clock.

Example rendered output:

πŸ”΄ 5h β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘ 60%     (red β€” burning fast)
🟒 7d β–ˆβ–‘β–‘β–‘β–‘β–β–‘β–‘β–‘β–‘ 15%     (green β€” well under pace)
@lennypham
lennypham / iOSYTFrameAPI
Created October 3, 2013 20:23
iOS iFrame API - Playing a video inline in a iOS UIWebview.
static NSString *youTubeVideoHTML = @"<!DOCTYPE html><html><body><div id=\"player\"><script>var tag = document.createElement('script');tag.src = \"http://www.youtube.com/iframe_api\";var firstScriptTag = document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;function onYouTubeIframeAPIReady() { player = new YT.Player('player', { height: '%0.0f', width: '%0.0f', videoId: '%@', events: { 'onReady': onPlayerReady, }, playerVars: { playsinline: 1 } }); } function onPlayerReady(event) { event.target.playVideo(); }</script></body></html>";
- (void)playVideoWithId:(NSString *)videoId
{
self.myWebView.allowsInlineMediaPlayback = YES;
self.myWebView.mediaPlaybackRequiresUserAction = NO;
NSString *html = [NSString stringWithFormat:youTubeVideoHTML,
self.myWebView.frame.size.height,
self.myWebView.frame.size.width,
@Shika-B
Shika-B / fix_discord.md
Last active May 28, 2026 16:26
Discord lagging during long calls on Linux

My discord was lagging increasingly during long calls on my Manjaro installation. I searched a bit on the Wiki but the fix shared there didn't work for. What worked for me is this answer on the Discord support forum, that I will detail a bit here. Start by moving to the right folder:

cd ~/.config/discord/<your_version>/modules/discord_desktop_core

Then, depending on whether you are a javascript developer or not, you may need to install the npm package of your distribution. On Arch/Manjaro, yay -S npm will do. Once this is done, unpack the core.asar file with

npx asar extract core.asar core
@jishanshaikh4
jishanshaikh4 / hcaptcha.user.js
Created June 15, 2022 03:54
Tampermonkey script to solve Hcaptcha
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
Tell me about the project you are involved in your current organization/your past organization
Iam currently working for (if you're currently working)
I was working for (Your past organization name). Our client is _________ (your client name) of _______ domain. (some domain you should add here)
The application we work on is a java based application and our developers write source code and build scripts based on the features assigned to them in sprints. All the source code is uploaded by developers into remote GitHub servers.
As a DevOps engineer my responsibility is to perform CICD on the code. For doing CICD activities, in our organization we configured Jenkins as a CICD tool. I have integrated Jenkins with github in such a way that whenever developer uploads new code / make changes to the existing source code, jenkins will notify us. I enabled the process of automating the steps of downloading the source code, perform builds based on the build script pom.xml by integrating maven with Jenkins, and deploy