Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 14, 2026 23:18
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
// ==UserScript==
// @name Venice Enhanced
// @namespace http://tampermonkey.net/
// @version 0.7.1
// @description Customize chat width, justification, set custom model selector height, add collapsable/movable Table of Contents (Questions only) with top offset on venice.ai. Handles message deletion & edits, and SPA navigation. Aligns scroll to top with offset. Show/hide via menu. Handles Shadow DOM. Optimized observer. Better ToC text extraction.
// @author kiranwayne
// @match https://venice.ai/*
// @updateURL https://gist.github.com/kiranwayne/76e1415d5c0ac38fa66e8043ba5b2e69/raw/venice_enhanced.js
// @downloadURL https://gist.github.com/kiranwayne/76e1415d5c0ac38fa66e8043ba5b2e69/raw/venice_enhanced.js
// @grant GM_getValue

Setting up Unifi Talk without Touch device

I recently came across the issue that I wanted to setup Unifi Talk but I didn't want to buy a talk device just to set it up (this was the recommended way from Unifi)

For Unifi Talk 4.2.4 its a little more difficult but still possible:

  1. Go to your Unifi Talk setup page and press right mouse button -> Inspect
  2. Go to Network tab in Dev Tools
  3. Search for index-
# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
@lheckemann
lheckemann / 0-readme.md
Last active February 14, 2026 23:14
Expression for a buildEnv-based declarative user environment.

Expression for a buildEnv-based declarative user environment

This is one way of managing your user profile declaratively.

Alternatives include:

  • an attrset-based nix-env-based environment, installed using nix-env -ir rather than nix-env --set. LnL has an overlay which shows a way of doing this.
  • home-manager, which provides NixOS-like config for your $HOME

Note that this is incompatible with regular imperative use of nix-env, e.g. nix-env -iA nixpkgs.hello. It has the advantage of allowing the installation of multiple outputs of the same package much better than nix-env's builtin profile builder does.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active February 14, 2026 23:12
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: