Skip to content

Instantly share code, notes, and snippets.

- name: Docker registry
docker: image=registry:0.9.0 ports=5000:5000 name=registry env="SETTINGS_FLAVOR=s3,AWS_BUCKET=docker-something,STORAGE_PATH=/registry,AWS_KEY=...,AWS_SECRET=...,SEARCH_BACKEND=sqlalchemy" state=running
{
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"jest": true,
"browser": true,
"es6": true,
"node": true
},
@mattb
mattb / wordle-word-score.js
Created January 24, 2022 07:21
Calculating scores of first word choice in Wordle
// node wordle-word-score.js | sort -n
const fs = require('fs');
words = [];
dict = [];
idx = {};
fs.readFileSync('wordledict.txt', 'utf-8').split(/\r?\n/).forEach(line => dict.push(line));
fs.readFileSync('wordlewords.txt', 'utf-8').split(/\r?\n/).forEach(line => {
words.push(line);
line.split("").forEach((letter, i) => {
@mattb
mattb / summarize_youtube.sh
Created January 1, 2024 23:43
Download the automatic subtitle track from Youtube and summarize it with a local LLM
yt-dlp --skip-download --write-auto-sub --sub-format ttml --sub-lang en -o /tmp/out $1 &&
(
echo 'Summarize the following YouTube transcript:\n' > /tmp/out1
cat /tmp/out.en.ttml | grep ^\<p | cut -d\> -f 2 | cut -d \< -f 1 >> /tmp/out1
cat /tmp/out1 | ollama run mistral
)
@mattb
mattb / rodecaster-video-OSC.md
Created September 14, 2025 16:47
Rodecaster Video OSC protocol

OSC Protocol Documentation - RØDECaster Video

Last updated 14 September 2025

This document provides comprehensive documentation of all OSC (Open Sound Control) messages that can be sent to and received from the RØDECaster Video device.

It was reverse engineered by Claude Code by inspection of https://github.com/bitfocus/companion-module-rode-rcv and capture of a few OSC sessions with the device.

Connection Details