Visitar URL original
Discover gists · GitHub
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.

@raspiduino
raspiduino / readme.md
Created July 5, 2024 10:16
VirusTotal detection API from ProcessExplorer

Disclaimer

  • Me (@raspiduino/gvl610) DID NOT do any Process Explorer reverse engineer. This API had appeared multiple times on the Internet before I wrote this.
  • This API key is not intended for any uses outside of the Process Explorer program itself.
  • I takes absolutely NO responsibilities for any damage and/or problems that may occur when using this API.
  • DON'T ABUSE this API.

The API itself

Basic API is as following. You can use curlconverter to convert to any programming language you would like.

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active October 11, 2026 10:08
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Standard Format

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
// ── ChatGPT Conversation → Markdown Exporter (saved + temp chats) ────────────
// Paste into the console on any ChatGPT conversation, saved OR temporary.
(() => {
function htmlToMd(node) {
if (!node) return '';
if (node.nodeType === Node.TEXT_NODE) return node.textContent;
if (node.nodeType !== Node.ELEMENT_NODE) return '';
const tag = node.tagName.toLowerCase();
@DannyMac180
DannyMac180 / cache_gap_check
Created October 10, 2026 17:04
cache_gap_check.py
#!/usr/bin/env python3
"""cache_gap_check.py - READ-ONLY. Is raising subagentPromptCacheTtl 5m -> 1h likely worth it?
Scans Claude Code transcripts (~/.claude/projects/**/*.jsonl) for subagent (sidechain)
requests, measures idle gaps between each subagent's consecutive requests, and estimates
cache cost under the current 5m TTL vs a hypothetical 1h TTL, in multiples of base input
price. Python 3 stdlib only. Never writes files and makes no network calls.
"""
import argparse, json, os, sys
from collections import defaultdict
@Kartones
Kartones / postgres-cheatsheet.md
Last active October 11, 2026 09:47
PostgreSQL command line cheatsheet

PSQL Cheatsheet

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@lidgnulinux
lidgnulinux / Alpine_Linux_minirootfs_install.md
Last active October 11, 2026 09:35
Install Alpine Linux Via Minirootfs Archive.

Install Alpine Linux Via Minirootfs Archive.

Prerequisites.

  • Any live usb bootable.
  • Alpine Linux minirootfs archive, we can get it here. We can choose alpine-minirootfs-3.20.2-x86_64.tar.gz.
  • Some partitions, for root system (/), efi (if you have uefi machine) and swap (optional).
  • Basic commandline knowledge.

Steps.