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
@rameerez
rameerez / rails-production-setup.sh
Last active March 10, 2026 09:44
Rails Production Server Setup - Set up a new Ubuntu Server 24.04 LTS to run a Rails 7 app, using Capistrano for deployment
#!/bin/bash
# This script takes a clean Ubuntu Server 24.04 LTS AMI and installs and configures
# everything needed to deploy a Rails 7 app to it. The resulting state is a secure,
# production-ready instance.
set -euo pipefail
# --- AESTHETICS ---
@rameerez
rameerez / postgres-production-setup.sh
Last active March 10, 2026 09:44
PostgreSQL Production Server Setup - Set up a new Ubuntu Server 24.04 LTS machine to run a production Postgres server
#!/bin/bash
# This script takes a clean Ubuntu Server 24.04 LTS image and installs and configures
# everything needed to deploy a production-ready PostgreSQL server.
set -euo pipefail
# --- AESTHETICS ---
GREEN='\033[0;32m'
@proveeder
proveeder / no_ibus_zoom.md
Last active March 10, 2026 09:37
Zoom without 'ibus' dependency

INFO REFERENCE

Zoom .deb package provided by zoom themselves has very annoying and unnecessary ibus package dependency. Here how u can easily remove it by several lines in your command line:

Download zoom

scratch=$(mktemp -d)

# Extract package contents
@CodeLeom
CodeLeom / AGENT.𝗺𝗱
Last active March 10, 2026 09:35
Best practices and workflows to use with an AI agent on any project
## Workflow Orchestration
### 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately
- Don't keep pushing.
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
### 2. Subagent Strategy
@stellasphere
stellasphere / descriptions.json
Last active March 10, 2026 09:33
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/01d@2x.png"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/01n@2x.png"
}
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@Blackshome
Blackshome / bathroom-humidity-exhaust-fan.yaml
Last active March 10, 2026 09:31
bathroom-humidity-exhaust-fan.yaml
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# 🚿 Bathroom Humidity Exhaust Fan
**Version: 2.6**
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿
@emschwartz
emschwartz / README.md
Last active March 10, 2026 09:31
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

第一梯队:日常必用

命令 说明
gateway 最核心命令,启动 WebSocket Gateway 服务,是整个系统的运行基础
configure 交互式配置向导,首次使用和修改配置时必用
config 非交互式配置辅助(get/set/unset),脚本化管理配置
channels 管理聊天渠道连接(Telegram、Discord 等),接入消息平台的入口
agent 通过 Gateway 运行一次 agent turn,直接与 AI agent 交互
message 收发消息的核心命令,日常使用频率很高