Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 16, 2026 00:17
microgpt
"""
The most atomic way to train and inference 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
@mary-ext
mary-ext / bluesky-osa.md
Last active February 14, 2026 23:08
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.

This sucks, but thankfully there are ways to work around it.

Before diving in: I encourage you to read this entire document, including the

/* ==UserStyle==
@name unfuck discord
@namespace easrng
@version 0.0.5
@author easrng
@updateURL https://gist.github.com/easrng/6d2305c305a2934ff4d21320e040cec8/raw/unfuck_discord.user.css
==/UserStyle== */
@-moz-document domain("discord.com") {
:root {
--font-primary:
@poyotanp
poyotanp / how-to-disable-middle-click-paste.md
Last active February 11, 2026 13:44
How to disable middle-click paste in KDE Plasma (Wayland)

Environment

  • Arch Linux
  • KDE Plasma 6.1.5 (Wayland)

Solution

For native Wayland applications

  1. open the KDE system settings
  2. select "Workspace" -> "General Behavior"
@gabe565
gabe565 / change-arc-icon.md
Last active November 25, 2025 18:18
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@TrevTV
TrevTV / ArcOn10.md
Last active October 23, 2025 19:22
Guide to installing Arc Browser on Windows 10

NOTICE: Arc now supports Windows 10 officially. This guide is no longer necessary.

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

.emoji[alt="🥹"] {
content: url("https://vendicated.github.io/random-files/face_holding_back_tears.svg");
}
.emoji[alt="🥺"] {
content: url("https://vendicated.github.io/random-files/pleading_face.svg");
}
@Erisa
Erisa / repeat.ts
Last active January 7, 2023 17:48
Repeat for clearing out Pages deployments (https://repeat.dev)
const config = [
{
project: "erisa",
days: 180
},
{
project: "super-secret-sauce",
days: 60
}
]
import tweepy, json, time, sys
auth = tweepy.OAuth1UserHandler(
<api keys here>
)
api = tweepy.API(auth)
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1])
@harubaru
harubaru / wd1-3-release.md
Last active December 18, 2025 01:15
Official Release Notes for Waifu Diffusion 1.3