Skip to content

Instantly share code, notes, and snippets.

@devinschumacher
devinschumacher / private-github-forks.md
Last active August 16, 2026 22:49
Github Private Forks: How to privately fork a repository
title How to Create a Private “Fork” of a Public GitHub Repo
description Step-by-step guide to clone a public repo into a private repository in your organization while still pulling in upstream changes.
tags
git
github
private-fork
cli

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.

@aarondfrancis
aarondfrancis / audit-your-codebase.md
Created August 14, 2026 15:20
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

@adammyhre
adammyhre / DoorInteractable.cs
Created August 16, 2026 08:19
Flexible Interaction System for Unity
using System.Collections.Generic;
using UnityEngine;
public class DoorInteractable : MonoBehaviour, IInteractable {
[SerializeField] InteractionUI ui;
bool isOpen;
List<InteractionAction> actions;
public InteractionUI UI => ui;
public List<InteractionAction> GetAvailableActions(Interactor interactor) => actions;
// ==UserScript==
// @name Netcine Movie Controller
// @namespace https://gist.github.com/RudaGabriel/
// @version 1.5.1
// @description Retoma filmes do ponto salvo | Hotkeys: ←/J -15s | →/L +15s | Espaço/K pause/play | Anti-redirect + bridge cross-origin via postMessage
// @author Ruda Gabriel
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABUCAYAAABKkT/yAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20ve
@RudaGabriel
RudaGabriel / netcine-random-player.user.js
Last active August 16, 2026 22:14
Netcine Random Player (RUDA GABRIEL)
// ==UserScript==
// @name Netcine Random Player 🎲
// @namespace https://gist.github.com/RudaGabriel
// @version 3.9.6
// @description Autoplay robusto • DUB-only • Modo Cinema • Sem repetição • Anti-Ads • Pulo inteligente
// @author Ruda Gabriel (UI Mod + Compact + Hover Delay)
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABUCAYAAABKkT/yAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE
Файл настройки: ~/.vimrc
Можно редактировать файлы через сеть, например
:e <scp|ftp|ftps>://user@host/path/to/the/file.txt
:Ex или :e ./ - файловый менеджер
== Основы ==
hjkl перемещение в разные стороны
i режим вставки
I добавление в начало строки
a режим добавления
@RudaGabriel
RudaGabriel / leitor_xls_xlsx.js
Last active August 16, 2026 22:13
Leitor XLS/XLSX (RUDA GABRIEL)
(async function() {
const $ = (s, r = document) => r.querySelector(s),
$$ = (s, r = document) => [...r.querySelectorAll(s)];
if ($("#rgxls-modal-overlay")) { console.warn("Leitor XLS/XLSX: já está aberto."); } else {
const CDN = "https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js";
const LS_KEY = "rg_xls_leitura_cfg_v5";
const LOCALE = "pt-BR";
const MOEDA = "BRL";
const norm = s => String(s || "").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, " ").trim();
const normKey = s => norm(s).replace(/[^a-z0-9 ]/g, " ").replace(/\s+/g, " ").trim();
@RudaGabriel
RudaGabriel / GERENCIAL
Last active August 16, 2026 22:13
TRABALHO
(function(){
const LS="rg_gerencial_regras_ignorar";
const qs=(s,r=document)=>r.querySelector(s);
const qsa=(s,r=document)=>Array.from(r.querySelectorAll(s));
const norm=v=>String(v||"").trim().toUpperCase().replace(/\s+/g," ");
const isNum=t=>/^-?\d+(?:[.,]\d+)?$/.test(t);
const fmtBRL=v=>new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(Number(v||0));
const parseBRL=txt=>{
const m=String(txt||"").match(/-?\s*(?:R\$\s*)?\d{1,3}(?:\.\d{3})*,\d{2}/);
if(!m) return null;
@RudaGabriel
RudaGabriel / leitor_nfc_multi.js
Last active August 16, 2026 22:13
Leitor NFC-e/NF-e/NFSe (multi XML/ZIP) (RUDA GABRIEL)
(function() {
const $ = (s, r = document) => r.querySelector(s),
$$ = (s, r = document) => [...r.querySelectorAll(s)];
if($("#nfce-modal-overlay")) return;
const css = `#nfce-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:18px}
#nfce-modal{width:min(1200px,96vw);height:min(92vh,900px);background:linear-gradient(180deg,#0b1220 0%,#070b12 100%);border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 90px rgba(0,0,0,.6);border-radius:18px;overflow:hidden;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;color:#e5e7eb;display:flex;flex-direction:column}
#nfce-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);flex:0 0 auto}
#nfce-title{display:flex;flex-direction:column;gap:2px}