Skip to content

Instantly share code, notes, and snippets.

View sunny-g's full-sized avatar

Sunny Gonnabathula sunny-g

View GitHub Profile
@geohot
geohot / syllabus.md
Last active October 2, 2026 23:05
Compilers for Machine Learning

Compilers for Machine Learning

A hands-on one semester course where students build their own compiler from scratch, starting from elementwise programs and ending with training SOTA LLMs on GPUs. This course aggressively builds on the previous week, and is an exercise in slop management. If you let any slop in early, it will compound and you will not finish the class.

This syllabus will outline the spec, but not the implementation. The implementation and choice of programming language is up to the student. There is no starter code. We will establish a universal, simple, interchange format for UOps.

; uop v1 256x256 GEMM
%0 = buffer : dtype=f32 slot=0 size=65536
%1 = buffer : dtype=f32 slot=1 size=65536
@jh3y
jh3y / fluid-type.css
Created May 14, 2026 22:16
fluid typography scales with css pow()
/*
* Fluid Modular Type Scale
*
* A pure-CSS fluid typography system that smoothly scales font sizes
* between a minimum and maximum viewport width using a modular scale.
*
* Based on the great work of those at Clearleft, modified for modern css (pow())
* (https://utopia.fyi/blog/css-modular-scales/)
*
* Required custom properties (set on a parent or :root):
@VictorTaelin
VictorTaelin / gist:7ae3d262e4d0b80a4e8817a80f976a68
Created April 27, 2026 04:43
SupVM - distilled version of HVM for SupGen - one shot by GPT 5.5
#!/usr/bin/env node
// SupVM.ts
// ========
// A tiny evaluator for the HVM subset used by InsertGen_hardcoded.hvm.
// Sup-fork captures are the only DUP form needed by that file. SupVM gives
// them the same observable branch correlation through a labelled-choice map,
// and charges captured variables as DUP-like interactions.
declare function require(nam: string): any;

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.

@karpathy
karpathy / microgpt.py
Last active October 2, 2026 20:20
microgpt
"""
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
@banteg
banteg / readme.md
Last active September 19, 2026 10:54
uninstall beads

Beads Uninstall Script

A comprehensive uninstall/cleanup script for Beads (bd) that removes all traces of the tool from a system.

Usage

./scripts/uninstall.sh            # dry-run (scan $HOME)
./scripts/uninstall.sh --apply    # perform cleanup
./scripts/uninstall.sh --root DIR --apply
@intellectronica
intellectronica / 0.README.md
Last active February 23, 2026 11:47
Filez - Ad-Hoc File Sharing Using GitHub Pages

GitHub Pages File-Sharing

If you sometimes find yourself needing to share a file over HTTP, there are not many file-sharing solutions you can use.

This action works by publishing files via GitHub Pages behind an obscure prefix path. It updates the repository README with the URLs, so that you have links to the published files.

You can keep the repository secret, and the files are public but semi-secret, so you can share them without concern that other files will be discovered.

@pbarone
pbarone / unraid-nfs-configuration.md
Created September 2, 2025 15:21
UNRAID NFS Configuration Guide

UNRAID NFS Configuration Guide - Complete Issue Resolution

Executive Summary

This document details the investigation, root cause analysis, and resolution of recurring NFS stale file handle issues in a home lab environment with UNRAID NAS and multiple Linux clients. The solution involved migrating from static NFS mounts to systemd automount configuration, eliminating stale handle problems while maintaining full container compatibility.

Environment Overview

Infrastructure

  • UNRAID Server: unraid-server (192.168.1.100) - Primary NAS with NFS exports
@rebane2001
rebane2001 / glass-with-controls.html
Last active September 22, 2026 11:07
glass effect test css/svg thing (messy) - demo: https://codepen.io/rebane2001/details/OPVQXMv
<div style="position:absolute;top:-999px;left:-999px">
<svg
id="effectSvg"
width="200"
height="200"
viewBox="0 0 200 200"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">
@VictorTaelin
VictorTaelin / ic.hs
Last active July 22, 2025 17:55
Minimal Interaction Calculus implementation in Haskell
import Control.Monad (when)
import Data.Char (chr, ord)
import Data.IORef
import Data.Word
import Debug.Trace
import System.IO.Unsafe (unsafePerformIO)
import Text.Parsec hiding (State)
import qualified Data.IntMap.Strict as IntMap
import qualified Data.Map as Map
import qualified Text.Parsec as Parsec