Skip to content

Instantly share code, notes, and snippets.

@shawnyeager
shawnyeager / opencode-systemd-tailscale.md
Last active March 1, 2026 20:42
Run OpenCode as a persistent systemd service with Tailscale access

OpenCode Web Server Setup

Run OpenCode as a persistent background service, accessible from any device via Tailscale.

Why?

  • Access from anywhere — Start a task from your phone, check results from your laptop
  • Sessions persist — Close the browser, come back later, your session is still there
  • Multiple clients — Terminal TUI and browser can connect to the same session simultaneously
  • Survives crashes — systemd restarts the server automatically
"""
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
#!/usr/bin/env python3
import requests
import json
import sys
from datetime import datetime
import calendar
import pathlib
import time
import pickle
import html

CIP DataTable Protocol Reference

Rockwell/Allen-Bradley CIP DataTable services for grouped tag reads and writes over EtherNet/IP.


Table of Contents

  1. Overview
  2. Lifecycle
@TheKing-OfTime
TheKing-OfTime / Export any Yandex Music Web playlist tracks.js
Last active March 1, 2026 20:33
Export any Yandex Music Web playlist tracks to a file. Console script
// СКРИПТ ДЛЯ МГНОВЕННОГО ЭКСПОРТА ПЛЕЙЛИСТОВ ИЗ НОВОЙ ВЕБ ВЕРСИИ ЯНДЕКС МУЗЫКИ
// Created by: TheKingOfTime
// Version: 1.2
// License: MIT
// Как использовать:
// 1) Откройте веб версию Яндекс Музыки.
// 2) Откройте консоль (F12).
// 3) Вставьте код, нажмите Enter.
// Экспорт будет происходить при заходе в плейлист (не альбом).
@igv
igv / SSimDownscaler.glsl
Last active March 1, 2026 20:31
Tuned for linear-downscaling=no.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
@taichikuji
taichikuji / README.md
Last active March 1, 2026 20:31
Get a DDNS up and running with DuckDNS - Step by Step

Get a DDNS up and running with DuckDNS - Step by Step

Understanding DDNS

In summary, DDNS stands for Dynamic DNS. DDNS updates a DNS name in real-time to point to a changing IP address. This is useful for devices without a static IP. For example, companies like Google use static IPs and IP ranges, which are more expensive than ephemeral IPs and IP ranges. DDNS provides a cost-effective alternative, linking a hostname to a dynamic IP address.

How Does DDNS Work?

To use DDNS, you need an account with a DDNS provider. While some services are paid, they are still cheaper than static public IPs from ISPs. A script or service on your device updates the DDNS server with your current IP at regular intervals to maintain the link between your hostname and IP address. Luckily for us, DuckDNS is free for everybody and relays on donations to keep their services running.