Skip to content

Instantly share code, notes, and snippets.

View yudanta's full-sized avatar

Yudanta yudanta

View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active February 17, 2026 10:42
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
@baringji
baringji / mysql.restore.md
Last active March 24, 2022 17:48
Restore MySQL tar.gz file using GNU zip (gunzip)

gunzip < [backupfile.sql.gz] | mysql -u[username] -p[password] [database]

@jheasly
jheasly / rtlsdr-osx.txt
Last active February 26, 2021 04:02 — forked from 0xabad1dea/rtlsdr-osx.txt
Build RTL-SDR on OSX with no tears using homebrew. Forked from https://gist.github.com/0xabad1dea/5777726, a macports solution.
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
brew install cmake
brew install libusb
brew install pkgconfig
brew install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/