Skip to content

Instantly share code, notes, and snippets.

@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

#!/usr/bin/env python3
"""
TurboGet v2 — Multi-download, Resume & URL-swap capable chunk downloader
Requirements: pip install requests
"""
import os, sys, math, time, json, uuid, shutil, threading
import requests
import tkinter as tk
from tkinter import filedialog, messagebox, simpledialog

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.

#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
@stelcodes
stelcodes / backup-directory-dangerously.clj
Created October 1, 2022 03:18
safely use rsync --archive --delete to backup a directory
#!/usr/bin/env bb
(ns backup-directory-dangerously
(:require [babashka.cli :as cli]
[babashka.fs :as fs]
[babashka.process :as p]
[clojure.java.io :as io]
[clojure.string :as str]))
(defn abort []
(println "Aborting backup")
@andyfeller
andyfeller / README.md
Last active May 19, 2026 03:06
Tips and tricks excerpts from charmbracelet/vhs tapes

Source: path:**/*.tape

  • Using Up and Left to rewrite previous commands (source)

    Type "grex -c 'regexes are awesome' 'regexes are awful'"
    Sleep 3s
    Enter
    Sleep 10s