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
@p-mng
p-mng / README.md
Last active March 13, 2026 06:08
Uninstall Rosetta 2 on macOS

Uninstall Rosetta 2 on macOS

1. Disable SIP (System Integrity Protection)

  1. Boot into recovery
  2. Open a terminal (Utilities > Terminal)
  3. Disable SIP using csrutil disable
  4. Reboot into macOS

2. Uninstall Rosetta

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; 作者: 李继刚
;; 日期: 2025-11-12
;; 剑名: 圆桌讨论
;; 剑意: 构建一个以“求真”为目标的结构化对话框架。该框架由一位极具洞察力的主持人
;; 进行引导,邀请代表不同思想的“典型代表人物”进行一场高强度的、即时响应式的
;; 深度对话。主持人将在每轮总结时生成视觉化的思考框架(ASCII Chart),通过
;; “主动质询” 与“协同共建”,对用户提出的议题进行协同探索,最终生成深刻的、
;; 结构化的知识网络。
@aiiddqd
aiiddqd / telegram-wordpress-oembed-website.md
Last active March 13, 2026 05:59
How to Embed a Telegram Post on Your WordPress Site

How to Embed a Telegram Post on Your WordPress Site

In 2026, embedding a single Telegram post (from a public channel or group) into a WordPress site is straightforward. Telegram provides an official widget, and WordPress supports it natively via oEmbed or simple HTML. Here are the two best methods that work reliably today.

Method 1 – Official Telegram Widget (No Plugin Required)

This uses Telegram's built-in embed script – perfect for one-off posts.

Docs https://core.telegram.org/widgets/post

@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active March 13, 2026 05:57
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD

Ensure that your kernel includes KVM modules

  • Shall i implement it?
  • No ...
@jack-arturo
jack-arturo / claude-automation-cron-setup.md
Created August 22, 2025 04:23
Complete macOS Setup Guide for Claude Automation Hub

Complete macOS Setup Guide for Claude Automation Hub

Step 1: Install Claude Desktop & Claude Code

# Install Claude Desktop (if not already installed)
# Download from: https://claude.ai/download

# Install Claude Code via Homebrew (when available)
# Note: As of now, check if Claude Code is released
@jph00
jph00 / smol-training.md
Created October 31, 2025 07:29
smol training playbook
@tejainece
tejainece / vscode_marketplace
Last active March 13, 2026 05:50
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery
@ossa-ma
ossa-ma / tropes.md
Last active March 13, 2026 05:49
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs