Skip to content

Instantly share code, notes, and snippets.

@muness
muness / PRIVACY.md
Last active October 1, 2026 10:42
T-Dongle Privacy Policy — Open Horizon Labs LLC

T-Dongle privacy policy

Developer: Open Horizon Labs LLC. Contact: t-dongle@openhorizonlabs.ai. Last updated: September 30, 2026.

The app runs USB management locally. SSID and password are transmitted to the selected, explicitly permitted dongle; the firmware stores them in its NVS. Profiles and status are read back over USB. Password values are neither returned as diagnostic text nor stored in app preferences, files, activity saved state or logs. A Java string can exist in memory while a submission/confirmation is pending; this is not a secure-memory erasure guarantee.

The screen clears its password on submit and backgrounding and disables field saved-state/autofill/personalized IME learning for credentials. Android cloud backup and device transfer exclude app data. An interrupted-install marker, firmware selection/cache and chosen measurement endpoint are persisted locally. The instrument additionally retains up to seven days of measured counters/rates, signal, dongle identity/boot boundaries, incident

@muness
muness / recover-stacks.sh
Created January 10, 2026 12:34
Recover running Docker containers as Dockge stacks
#!/bin/bash
# Recover running containers as Dockge stacks
STACKS_DIR="${1:-/share/Container/stacks}"
mkdir -p "$STACKS_DIR"
# Get all running containers (excluding dockge itself)
containers=$(docker ps --format '{{.Names}}' | grep -v dockge)
for container in $containers; do
@muness
muness / tamper.js
Created December 17, 2025 18:52
Google Cloud Console Project + User default
// ==UserScript==
// @name GCP Auto Project & User Selector
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Automatically sets the project and authuser in GCP Console URLs
// @author You
// @match https://console.cloud.google.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@muness
muness / 0 tiling on mac README.md
Last active November 27, 2025 17:21
macos tiling window manager cheatsheet

Notes

I've wanted a clean tiling WM setup on my mac for years. This finally works for me:

  • Yabai for tiling
  • Ghostty for a fast terminal
  • Zellij for panes and tabs
  • JankyBorders for a clear focus highlight
  • A Raycast extension for quick layout toggles and restarts
  • skhd-zig for simple hotkeys
@muness
muness / debolat.sh
Last active January 5, 2026 02:17
Bigme Hibreak Pro debloat script
#!/bin/bash
# Bigme Hibreak Pro Debloat Script
# Safe to disable packages
safe_packages=(
"com.xrz.ai"
"com.xrz.dictapp"
"com.b300.xrz.web"
"com.xrz.soundrecord"
@muness
muness / authorize egpu
Last active August 19, 2025 14:49
Install glances including GPU and web server plugins
#!/usr/bin/env bash
#
# tb3_auto_auth.sh
# Enumerate all Thunderbolt devices via boltctl, enroll them if needed,
# and authorize any that are currently connected.
set -e
# Make sure boltctl is installed
if ! command -v boltctl &>/dev/null; then
@muness
muness / README.md
Last active June 2, 2026 22:00
Fetch enhanced lyrics for FLAC, M4A and MP3 files

Lyric Fetcher for Music Libraries

This script pulls lyrics for FLAC, MP3, and M4A files in a given music folder. It is not Beets-specific but works well with a Beets-managed library. The script supports incremental processing by marking folders as processed using a .lyrical file.

Installation

  1. You'll need Python 3 and pip installed.
  2. Then install the required dependencies:
pip install tqdm tenacity langdetect mutagen syncedlyrics
@muness
muness / am-obsidian.user.js
Last active October 12, 2022 13:37
Add Obsidian Links next to Amazing Marvin tasks
// ==UserScript==
// @name Add Obsidian Links in Amazing Marvin
// @namespace https:/217castle.com
// @updateURL https://gist.githubusercontent.com/muness/3741bfa2afa5e58d38a420c50cefaa38/raw/am-obsidian.user.js
// @downloadURL https://gist.githubusercontent.com/muness/3741bfa2afa5e58d38a420c50cefaa38/raw/am-obsidian.user.js
// @version 0.1.3
// @author Muness Castle
// @description In Amazing Marvin, this script finds Wiki links and adds links to Obsidian
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.2/waitForKeyElements.js
// @match https://app.amazingmarvin.com/*
@muness
muness / BambooHR.gs
Last active February 17, 2021 16:17
BambooHR API client for Google Sheets
// global vars that are taken from userProperties
var BAMBOOHR_SUBDOMAIN = '<fill this out>';
// add a custom menu to enter API credentials, so they don't need to be saved on the script
function onOpen() {
// Add API credentials menu to sheet
SpreadsheetApp.getUi()
.createMenu("BambooHR API Credentials")
.addItem("Set Credentials", "setCred")
.addItem("Remove Credentials", "deleteCred")
CREATE LIBRARY sqlparse LANGUAGE plpythonu FROM 's3://zapier-data-packages/sqlparse.zip' CREDENTIALS 'aws_access_key_id=AKIA6P3ALSQUD7YBV6UK ;aws_secret_access_key=6FzdA0ldVGRuuBqovXpYPZsBLfZN9QAQ8eQbxaK5';
DROP FUNCTION sqlparse_test(ANYELEMENT);
CREATE OR REPLACE FUNCTION sqlparse_test(sql_string ANYELEMENT) RETURNS varchar
IMMUTABLE
language plpythonu
AS
$$
import sqlparse
return (sqlparse.parse(sql_string)[0]).value