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
#!/bin/bash
PLUGIN_FILE="/usr/share/proxmox-acme/dnsapi/dns_hetznercloud.sh"
SCHEMA_FILE="/usr/share/proxmox-acme/dns-challenge-schema.json"
DOWNLOAD_URL="https://raw.githubusercontent.com/acmesh-official/acme.sh/refs/tags/3.1.2/dnsapi/dns_hetznercloud.sh"
if [ -f "$PLUGIN_FILE" ]; then
echo "File '$PLUGIN_FILE' already exists. Stopping."
exit 0
fi
@Kyle-Ye
Kyle-Ye / CAHostingLayer.md
Last active March 21, 2026 18:42
Using CAHostingLayer in SwiftUI — access SwiftUI's SPI CALayer without Apple internal SDK

Using CAHostingLayer in SwiftUI

Background

SwiftUI provides more than just UIHostingController / _UIHostingView (iOS) and NSHostingController / NSHostingView (macOS) for embedding SwiftUI views into UIKit/AppKit.

Starting from iOS 18.0 / macOS 15.0, SwiftUI also offers CAHostingLayer<Content: View> — a CALayer subclass that can host SwiftUI content directly at the layer level. This API is currently marked as SPI (@_spi(ForUIKitOnly) / @_spi(ForAppKitOnly)) and is used internally by UIKit, AppKit, and WebKit.

Accessing CAHostingLayer without Apple Internal SDK

@vanbwodonk
vanbwodonk / verify_fitgirl_files.sh
Last active March 21, 2026 18:37
Verify Fitgirl Files in Linux
sed 's|^\([a-f0-9]\{32\}\) \*..\\\(.*\)$|\1 \2|' MD5/fitgirl-bins.md5 | md5sum -c -
@glaucia86
glaucia86 / codebase-review-question-audit
Last active March 21, 2026 18:33
01-codebase-review-question-audit/SKILL.md
---
name: codebase-review-question-audit
description: Perform a deep structured review of the codebase, identify ambiguities, risks, and missing decisions, and generate a QUESTIONS.md file to clarify architecture, behavior, security, performance, and refactoring concerns before implementation.
version: 1.0.0
phase: discovery
produces: QUESTIONS.md
next: questions-md-resolution-implementation
---
# Codebase Review Question Audit
@julianlam
julianlam / tp-link-ac600-ac1300-drivers-linux.md
Last active March 21, 2026 18:28
Installing drivers for the TP-Link T2U/T3U Plus (AC600 or AC1300) Wireless Adapter #blog
@M-rcus
M-rcus / _README.md
Last active March 21, 2026 18:27
Userscript to allow you to download media from Fansly (no it doesn't work for media you normally wouldn't have access to).

Fansly Download

A work-in-progress userscript for downloading media from Fansly.

Installation and usage

  1. Install a userscript extension (such as Violentmonkey).
  2. Click on this link and your userscript extension should prompt you to install.
  3. Go on a Fansly post, make sure to click on the post so the URL looks something like: https://fansly.com/post/123456789...
  4. Click on the three dots top-right of the post. You should see a "Download media" option:
@coleman8er
coleman8er / garmin-browser-auth.py
Created March 21, 2026 14:53
Get Garmin OAuth tokens via Playwright browser login — bypasses the 429-blocked SSO endpoint
#!/usr/bin/env python3
"""
Get Garmin OAuth tokens via real browser login (Playwright).
Bypasses the 429-blocked SSO programmatic login endpoint.
Usage:
uv run --with playwright --with requests-oauthlib scripts/garmin-browser-auth.py
First time setup (installs Chromium):
uv run --with playwright python -m playwright install chromium
@lmmx
lmmx / INSTRUCTION.md
Last active March 21, 2026 18:26
‘AI tells’ rubric for detection of LLM generated text

You are a text evaluator. You will be given a piece of text and an AI Tells Rubric. Use the rubric to judge the text objectively. Read the text closely, identify any AI tells exactly as defined in the rubric, and support each finding with direct excerpts from the text. Structure your evaluation as a clear summary that follows the rubric’s categories, including severity or confidence levels if the rubric defines them, and provide a final judgment or score based solely on the rubric. Do not rewrite, improve, or correct the text, and do not add any criteria that are not present in the rubric. If a rubric item is unclear or absent, mark it as Not Applicable. If no AI tells are detected, state that explicitly and justify briefly. Your analysis must be fully traceable to the rubric and the evaluated text so a human can verify every conclusion.

@OsoianMarcel
OsoianMarcel / prometheus-node-exporter-installation.md
Created August 20, 2025 16:11
Step-by-step guide to install and configure Prometheus Node Exporter on Linux with systemd.

Prometheus Node Exporter Installation Guide

This guide covers the installation and setup of Prometheus Node Exporter on a Linux system using systemd. Following these steps ensures that Node Exporter runs securely under a dedicated user account.

Create a dedicated user

Create a system user for Node Exporter without a home directory and login shell: