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
@rvalitov
rvalitov / IMAPsync.sh
Last active March 7, 2026 22:39
IMAP emails sync example from Yandex to Titan email service
# This example shows how to transfer emails from Yandex to Titan using the following:
# - proper use of SINCE and BEFORE keywords to select only some emails
# - proper hosts, ports and SSL configuration
# - skip of empty folders (empty folders are not created on destination)
# - email reports are not saved
# - no folder size calculation (it takes too long for big mailboxes with size of 10 Gb+)
# - correct matching of Yandex folders that have Russian names such as "Отправленные", "Отправленные_0", "Удаленные", etc,
# - skip other folders like "Junk Emails", "Infected Items" or "Исходящие" folder because it's "Outbox" that is missing on Titan.
imapsync \
@mohayonao
mohayonao / morse-code.json
Created July 14, 2014 06:18
morse-code.json
{
"0": "-----",
"1": ".----",
"2": "..---",
"3": "...--",
"4": "....-",
"5": ".....",
"6": "-....",
"7": "--...",
"8": "---..",
{
"interfaces": [
{
"identification": {
"id": "lo",
"type": "loopback"
},
"status": {
"enabled": true,
"mtu": 65536
@abma
abma / backup
Last active March 7, 2026 22:27
Incremental backup to external drive using snapper and btrfs send/receive
#!/bin/bash
# James W. Barnett
# Takes snapshots of each snapper configuration. It then sends the snapshot to
# a location on an external drive. After the initial transfer, it does
# incremental snapshots on later calls. It's important not to delete the
# snapshot created on your system since that will be used to determine the
# difference for the next incremental snapshot.
# Can set the backup directory here, or in the snapper configuration file with
@Resinchem
Resinchem / custom_panel.yaml
Created February 23, 2026 11:51
Add Developer Tools back to Home Assistant Side Bar
# Add DevTools back to Sidebar
panel_custom:
- name: panel_develop
sidebar_title: Developer Tools
sidebar_icon: mdi:hammer
url_path: 'config/developer-tools'
module_url: /api/hassio/app/entrypoint.js
embed_iframe: true
require_admin: true
@alirezarezvani
alirezarezvani / openclaw-gist-executive-workflows.md
Last active March 7, 2026 22:19
OpenClaw: The Operating System for People Who Actually Work — 25 prompts for founders, developers, and marketing managers. Soul setup, memory management, self-improvement, and workflow automation.

OpenClaw: 25 AI Automation Prompts for Founders, Developers & Marketing Managers

The complete OpenClaw setup guide: AI agent configuration, workflow automation, memory management, and self-improving AI assistant prompts for startups and SMEs.

By Reza Rezvani — CTO, startup founder, 22 years in engineering leadership. These aren't demos. These are production workflows I run daily. Copy-paste, answer a few questions, done.

Keywords: OpenClaw prompts, AI assistant setup, workflow automation, AI agent configuration, self-hosted AI, startup automation, SME workflow automation, AI memory management, Claude prompts, autonomous AI assistant, OpenClaw guide 2026


Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by