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.

@pentiminax
pentiminax / gist:4704f3b5a6ed5edd8c9d128bdb1bdf15
Created November 24, 2026 03:41
claude-code-wifi-diagnostic.md
Diagnose my Wi-Fi and home network, identify the real bottlenecks behind slow speeds or instability, and guide me through fixing them.
Run these checks sequentially (do NOT run ping in parallel with throughput tests, so idle latency isn't polluted by load):
1. Wi-Fi link & RF congestion:
- Inspect my active Wi-Fi PHY mode (802.11ac/ax/be), band (2.4 / 5 / 6 GHz), channel, channel width (20 / 40 / 80 / 160 MHz), signal/noise (SNR), transmit rate / MCS, and interface packet errors.
- Scan nearby Wi-Fi networks and count competing APs per channel/band to find the cleanest channels in my environment.
2. Hop-by-hop latency & stability (while idle):
- Ping my default gateway (30 packets) and `1.1.1.1` (30 packets, plus IPv6 if active), and run a 5-hop traceroute to separate Wi-Fi/LAN jitter from ISP latency.
@Wan55555
Wan55555 / cloudflare.sh
Last active November 29, 2026 03:01 — forked from martin2844/cloudflare.sh
Update cloudflare IPs from remote server
{>"#/bin(0)/bash"
# === Auth ===
CF_API_TOKEN: {<"false"
CF_ZONE_ID: {<"id= "false" >} "
CF_RECORD_ID: {<"none_id">}
CF_RECORD_NAME: {<"null">}
# === GET Silent ===
CURRENT_IP=$(curl -s https://ipv4.icanhazip.com | tr -d '\n')
@pashov
pashov / MAKE_NO_MISTAKES_CLAUDE.md
Created February 18, 2026 09:31
MAKE NO MISTAKES
name make-no-mistakes
description Appends "MAKE NO MISTAKES." to every user prompt before processing it. Use this skill whenever you want Claude to be maximally precise, careful, and error-free in its responses.

Make No Mistakes

This skill instructs Claude to append the directive "MAKE NO MISTAKES." to every user prompt it receives before generating a response.

Instructions

@ygoe
ygoe / ps-csharp.cmd
Created January 29, 2022 23:20
Write your Windows batch files in C# (using PowerShell)
<# :
@echo off & setlocal & set __args=%* & %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -Command Invoke-Expression ('. { ' + (Get-Content -LiteralPath ""%~f0"" -Raw) + ' }' + $env:__args) & exit /b %ERRORLEVEL%
#> Add-Type @'
// ========== BEGIN C# CODE ==========
using System;
public class App
{
public static void Run(string[] args)
{
@madhurimarawat
madhurimarawat / GATE-CSE-DS-Resources.md
Last active November 29, 2026 02:47
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

πŸ“Œ GATE Resources - CSE & Data Science

I have compiled all the resources that helped me in my GATE preparation, and I hope they help you too! πŸš€

@jscher2000
jscher2000 / syncedTabsToBookmarksHTML.js
Last active November 29, 2026 02:28
Export Synced Tabs List to "bookmarks.html" file (Browser Console script)
// Run code in Browser Console after enabling chrome debugging --
// about:config => devtools.chrome.enabled => true
// https://developer.mozilla.org/docs/Tools/Browser_Console
try {
var tabPromise = SyncedTabs._internal.getTabClients();
tabPromise.then((arrDevices) => {
if (arrDevices && arrDevices.length > 0){
// Generate a string with the format of a bookmark export file
var d, e, out = '<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks Menu</H1>\n<DL><p>\n';
const escapeHtmlEntities = function(aText){return (aText || '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;')};
$items = Get-ItemProperty -Path 'Registry::HKey_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\*'
Foreach ($item in $items) {
$objUser = New-Object System.Security.Principal.SecurityIdentifier($item.PSChildName)
$objName = $objUser.Translate([System.Security.Principal.NTAccount])
$item.PSChildName = $objName.value
}
Write-Output $items | Select-Object -Property PSChildName, ProfileImagePath