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
# remotes::install_github("walkerke/mapgl")
library(mapgl)
# CYBERPUNK 2125 - Ultra-striking neon palette
# Deep blacks + electric neons for that Blade Runner / Akira vibe
cyberpunk_2125 <- c(
"#000000", # Pure black (shadows)
"#0a0e27", # Deep space blue (dark areas)
"#1a1a2e", # Dark navy (buildings)
"#16213e", # Midnight blue
latest_version=$(curl "https://go.dev/dl/?mode=json" -s | jq -r ".[0].version")
command -v jq || sudo apt install jq
echo "[+] Installing ${latest_version}"
wget "https://go.dev/dl/"${latest_version}".linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "${latest_version}".linux-amd64.tar.gz
/usr/local/go/bin/go version
# echo """
# # Added by go installer
@titancode
titancode / gist:7373f0b63851787e6cb26f8fd594d017
Created March 7, 2026 19:54
Alfred workflow AppleScript for creating or resuming a Yatoro screen session in Ghostty
-- Create or resume a GNU screen session named "music" in Ghostty.
-- If the session does not exist, launch Yatoro and run a list of startup commands.
-- Designed for use in an Alfred workflow.
-- It's mostly created by ChatGPT
on run argv
if (count of argv) is 0 then return
set actionName to item 1 of argv
@pghant
pghant / cocMapping.json
Last active March 7, 2026 20:44
Clash of Clans JSON Export Mapping
[
{ "name": "Crafted Defense", "dataId": 1000097 },
{ "name": "Cannon", "dataId": 1000008 },
{ "name": "Archer Tower", "dataId": 1000009 },
{ "name": "Mortar", "dataId": 1000013 },
{ "name": "Air Defense", "dataId": 1000012 },
{ "name": "Wizard Tower", "dataId": 1000011 },
{ "name": "Air Sweeper", "dataId": 1000028 },
{ "name": "Hidden Tesla", "dataId": 1000019 },
{ "name": "Bomb Tower", "dataId": 1000032 },
@trojanfoe
trojanfoe / build-shadercross.py
Last active March 7, 2026 20:43
Build SDL_shadercross
#!/usr/bin/env python3
#
# Builds the SDL_shadercross tool and installs it locally.
#
# Prerequisites:
# Python 3
# Git
# C++ compiler
# CMake
# Ninja
@Arno0x
Arno0x / NetLoader.cs
Last active March 7, 2026 20:38
Partial rewrite of @Flangvik NetLoader. Supports proxy with authentication, XOR encrypted binaries, multiple arguments passing to binary.
/*
Author: Arno0x0x, Twitter: @Arno0x0x
Completely based on @Flangvik netloader
This partial rewrite of @Flangvik Netloader includes the following changes:
- Allow loading of an XOR encrypted binary to bypass antiviruses
To encrypt the initial binary you can use my Python transformFile.py script.
Example: ./transformFile.py -e xor -k mightyduck -i Rubeus.bin -o Rubeus.xor
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 7, 2026 20:35
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter: