Discover gists
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| # This server demo does a socket hijack in Rack and then saves the socket to a global variable | |
| # to prevent it from being GCed when the Puma thread ends. It will then write "BEEP" to each | |
| # socket every ten seconds to prevent the connection timing out. During testing, it easily | |
| # handled up to 65523 connections, after which it ran into the `ulimit` for open file descriptors. | |
| # The bit with the waiting area is there because a normal `Set` is not thread safe and it would | |
| # drop socket due to race conditions. The `Queue` is thread safe and will make sure all sockets | |
| # are preserved. | |
| # run with `rackup -q -p 8000 -o 0.0.0.0 c10k.ru` | |
| # testing: install `ab` and then run `ab -c 20000 -n 20000 <ip adress of server>:8000/ |
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.
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.
| [Desktop Entry] | |
| Name=AoE2 URL Opener | |
| Comment=Play this game on Steam (Open URL) | |
| Exec=/home/<youruser>/.local/bin/aoe2url %u | |
| Icon=steam_icon_813780 | |
| Terminal=false | |
| Type=Application | |
| MimeType=x-scheme-handler/aoe2de; | |
| Categories=Game; |
A zero-dependency logging proxy that sits between Claude Code and the Anthropic API. It forwards every request untouched, streams the reply straight back (so the CLI is unaffected), and writes a readable Markdown document for each request — led by a ranked table of what is eating your context.
| blueprint: | |
| domain: automation | |
| name: Shelly Dimmer 2 Detached Button Input | |
| description: Map button inputs of the Shelly Dimmer 2 | |
| author: Patrick C. Goff | |
| input: | |
| shelly: | |
| name: Shelly Dimmer 2 Switch | |
| description: Shelly Dimmer 2 Switch button inputs | |
| selector: |
Focused on Red Teaming, Penetration Testing & Script Development
Core Technical Skills:
- Linux Mastery: Command line, bash scripting, system administration, file permissions
- Networking Deep Dive: TCP/IP stack, subnetting, routing, DNS, HTTP/HTTPS protocols
- Windows Fundamentals: PowerShell, Active Directory basics, Windows security model