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
@ravarcheon
ravarcheon / theHorse.js
Last active March 3, 2026 02:50
the horse that blocks your screen after a 2 minutes
// ==UserScript==
// @name the horse that stands in your way
// @namespace http://tampermonkey.net/
// @version 2026-03-01
// @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse
// @author You
// @match http://*.x.com/*
// @match https://*.x.com/*
// @match http://*.instagram.com/*
// @match https://*.instagram.com/*
@dmitry-osin
dmitry-osin / css-cheatsheet-rus.md
Created April 28, 2025 23:02
Полная шпаргалка по CSS
@mberman84
mberman84 / oc.md
Created February 16, 2026 19:42
OpenClaw Prompts

OpenClaw Prompts - Build Your Own AI Assistant

Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.


1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."

2. Meeting Action Items (Fathom)

@cstroe
cstroe / OpenSourceCRM.rst
Last active March 3, 2026 02:40
A distilled list of open-source CRM software
Date,Details,Payload Type,Users Targeted
2/1/2026,Your Social Security e-Statement Is Ready � View Using the SSA Gov Viewer App; zip -> screenconnect,Attachment,2
2/1/2026,Final shipping documents; zip -> phantomstealer,Attachment,2
2/2/2026,STATEMENT OF ACCOUNTS DEC.2025 USF; zip -> bat -> guloader -> phantomstealer,Attachment,3
2/2/2026,FW: SS24 NEW TPI E407SH005 / E423SH006 RIA; docx -> rtf -> xloader continued to 2/4,Attachment,3
2/2/2026,Fw: RFQ-S75502262N; z -> xloader continued to 2/4,Attachment,2
2/3/2026,Signature Via Docusign Required; link -> msi -> screenconnect,Link,17
2/3/2026,You have an important notice from BMO Bank; link -> msi -> screenconnect,Link,15
2/4/2026,Re:Order H600287395; rar -> guloader -> phantomstealer continued to 2/6,Attachment,7
2/4/2026,PURCHASE ORDER AND SAMPLES 2026; docx -> rtf -> vbs -> xworm,Attachment,3
from twisted.internet import reactor
from quarry.net.proxy import DownstreamFactory, Bridge
def truncate(data, length=30):
return data[:length] + "..." if len(data) > length else data
ignore = []
class HackProxy(Bridge):
def packet_unhandled(self, buff, direction, name):