Skip to content

Instantly share code, notes, and snippets.

@Chripo72
Chripo72 / worker.js
Last active October 16, 2026 22:00
Cloudflare Worker for TP-Link Omada Custom Dynamic DNS config
///////
// Configuration
// If you use Cloudflare worker variables/secrets, comment the respective lines here.
///////
// Cloudflare API Secrets
const API_TOKEN = "YOUR_API_TOKEN"; // Replace with your Cloudflare API token
const ZONE_ID = "YOUR_ZONE_ID"; // Replace with your Zone ID
// Use HTTP basic authentication? - Set to false for debugging in Cloudflare code editor
@pmckeown
pmckeown / README.md
Created October 16, 2026 21:59
Claude Code status line: worktree, branch, model, effort, coloured context %

Claude Code status line

✻ book 🌳 my-worktree  ⎇ feature/x  · Opus  · high  · ctx 62%  · 5h 40%

Folder, git worktree (when in one), branch, model, effort, and context-window usage coloured green / yellow / orange / red at 50 / 75 / 90%. Optional: subscription 5-hour usage and session cost.

Install

@avoidik
avoidik / README.md
Last active October 16, 2026 21:57
Run Windows 11 IoT ARM on Mac M1 or similar

How to run Windows on Mac

We're going to run Windows 11 IoT (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM).

$ brew install qemu coreutils samba

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

#!/bin/sh
echo "# 24-bit (true-color)"
# based on: https://gist.github.com/XVilka/8346728
term_cols="$(tput cols || echo 80)"
cols=$(echo "2^((l($term_cols)/l(2))-1)" | bc -l 2> /dev/null)
rows=$(( cols / 2 ))
awk -v cols="$cols" -v rows="$rows" 'BEGIN{
s=" ";
m=cols+rows;
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active October 16, 2026 21:42
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@MangaD
MangaD / terminal_user_interfaces.md
Created August 3, 2026 12:12
The Complete Guide to Terminal User Interfaces (TUIs)

The Complete Guide to Terminal User Interfaces (TUIs)

CC0

Disclaimer: ChatGPT generated document.

A TUI (Terminal User Interface) is an interactive user interface rendered inside a terminal. It occupies the middle ground between a traditional command-line interface (CLI) and a graphical user interface (GUI): keyboard-centric, script-friendly and remote-friendly like a CLI, but with windows/panels, menus, tables, forms, dialogs, mouse support, colors, scrolling, and sometimes even graphics.

Modern TUIs have undergone something of a renaissance. Rust, Go, Python, C++, JavaScript, .NET, and other ecosystems now have sophisticated frameworks, while modern terminals support Unicode, 24-bit color, hyperlinks, mouse events, advanced keyboard protocols, and—in some terminals—actual images.

@conradcaffier03
conradcaffier03 / give-claude-eyes.md
Last active October 16, 2026 21:25
Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

🛠️ Want the rest of my tools? Grab them at get.caffier-agency.com/start

👁️ Give Claude Eyes — watch any video frame-by-frame

Freebie for the EYES keyword (reel-47, "Give Claude eyes"). Deliver as a public GitHub Gist — numbered steps the user can run today, not a raw link. Value-first: by the end you have a Claude Code skill that sees a video (every cut, every on-screen detail), not just reads its transcript.

@SChernykh
SChernykh / RandomX_v2_results.md
Last active October 16, 2026 21:20
RandomX v2 testing
  • RandomX v1 hash: 4194304 VM instructions + 262144 AES = 4456448 total ops
  • RandomX v2 hash: 6291456 VM instructions + 524288 AES = 6815744 total ops (+52.9%)

RandomX v2 includes the following changes:

  • Program size increased from 256 to 384
  • CFROUND is tweaked to change the rounding 16 times less often
  • Group F and group E register mix is done using 16 AES operations (the extra 262144 AES ops come from this change)
  • Dataset prefetch is 2 iterations ahead instead of 1

RandomX v2 hash is 1.5 times "heavier" than RandomX v1 hash, so hashrate comparison is only for the reference. The real metric is work per Joule (the last two columns).

@sathishshan
sathishshan / youtube-dl.txt
Last active October 16, 2026 21:07
Download youtube private or member videos
#single video
youtube-dl --cookies youtube.com_cookies.txt "URL"
#playlist
youtube-dl --yes-playlist --cookies youtube.com_cookies.txt "URL"
You can use: --playlist-start, --playlist-end, --playlist-reverse or --playlist-items to achieve this goal.
#Note: cookie should be in Netscape format