Skip to content

Instantly share code, notes, and snippets.

View luffy-yu's full-sized avatar
🀩
Stand Out Fit In

Liuchuan Yu luffy-yu

🀩
Stand Out Fit In
View GitHub Profile
"""
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
@chris-piekarski
chris-piekarski / start_stop_services_via_adb
Last active January 25, 2026 01:43
android am force-stop and start services
adb -d shell am force-stop com.android.Settings
adb -d shell am startservice com.android.Settings/com.android.Settings.ServiceName
#list intent receivers
adb shell dumpsys package com.ubnt.restapi | grep intent
adb shell pm list packages
#force factory reset
adb shell "am broadcast -n "com.android.server/com.android.server.MasterClearReceiver" -a android.intent.action.FACTORY_RESET"