Skip to content

Instantly share code, notes, and snippets.

"""
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
@anthonyrussano
anthonyrussano / buzz-local-runbook.md
Created July 24, 2026 07:25
Buzz local runbook: install, start/stop, desktop/web/mobile, agents/Codex, keyring fix

Buzz local runbook (from a full setup session)

Personal notes for running block/buzz on Linux: install, start/stop, desktop vs web vs mobile, hosted community, agents/Codex, and the keyring gotcha we hit.

Machine context from this session

  • OS: Linux (Ubuntu-ish), Docker already installed
  • Repo path used: ~/Workspace/buzz
  • LAN IP at the time: 10.32.25.37 (DHCP can change this)
  • Hosted community used on phone: russano.communities.buzz.xyz
@kashifulhaque
kashifulhaque / NvChad.md
Last active August 7, 2026 06:18
Neovim NvChad keybinds

Neovim keybinds

  • Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
  • _ (underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
    • 0 (zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
  • $ (dollar) to move the cursor at the end of line (doesn't switch to insert mode)
  • d$ will delete from wherever your cursor is till the end of the line
  • f<character> to move cursor to the first occurrence of <character>
    • f( to move cursor to first occurence of (
  • t<character> to move cursor to upto but not on the first occurrence of <character>
  • t( to move cursor to first occurence of (

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude-account1
    mkdir ~/.claude-account2
@erica
erica / skylight
Created September 22, 2016 17:52
0000000000253db8 s GCC_except_table1026
0000000000253de4 s GCC_except_table1096
0000000000253e10 s GCC_except_table1097
0000000000253e3c s GCC_except_table1243
0000000000253e68 s GCC_except_table1245
0000000000253e88 s GCC_except_table1247
0000000000253ec4 s GCC_except_table1249
0000000000253ee4 s GCC_except_table1252
0000000000253f10 s GCC_except_table1253
0000000000253f3c s GCC_except_table2726
@siayi
siayi / Regex-NIK-KTP.md
Last active August 7, 2026 06:02
Penjelasan Regex Nomor NIK KTP

Regex KTP / NIK versi 1 (sederhana):

^\\d{16}$

^ : penanda awal kata

\d{16} : harus matching angka (digit / d) sebanyak 16 buah.

$ : penanda akhir kata

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.

@developic
developic / fzf-tab.fish
Last active August 7, 2026 05:59
fzf-tab.fish
function __fzf_complete
set -l buffer (commandline -b)
set -l token (commandline -ct)
set -l cursor (commandline -C)
set -l trimmed (string sub -s 1 -l $cursor -- "$buffer")
set -l dir (
if type -q eza
echo "eza -lah --git --icons --color=always"
@whitequark
whitequark / installsword.c
Last active August 7, 2026 05:59
installsword.exe "My Installer Title" "Cool Title in the Background"
#define WIN32_LEAN_AND_MEAN
#include <tchar.h>
#include <stdint.h>
#include <windows.h>
#include <shellapi.h>
COLORREF rgbText = 0xffffff;
LPTSTR pchFontName = _T("Times New Roman");
INT iFontSizePt = 24;
LPTSTR pchText = _T("InstallSword Wizard");
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections: