Skip to content

Instantly share code, notes, and snippets.

View satmandu's full-sized avatar

Satadru Pramanik, DO, MPH, MEng satmandu

View GitHub Profile
@CappyT
CappyT / GUIDE.md
Last active March 24, 2026 16:03
Hassio Unifi Network Application hotfix

HA OS UniFi Add-on - Temporary Hotfix (CVE-2026-22557 & CVE-2026-22558)

This is a quick image-cache hijacking workaround to patch the local container without migrating volumes or waiting for the upstream release. It restores the s6-overlay entrypoint correctly so the add-on boots normally.

The Supervisor will automatically wipe this custom image and pull the official one once the maintainers release the patched update.

Prerequisites:

1. SSH access to the HA OS host on port 22222. (refer to the docs https://developers.home-assistant.io/docs/operating-system/debugging/#enabling-ssh-access-to-the-host )

#!/bin/bash
# crew-pre-glibc-standalone-alex-i686.m58.sh
if command -v xxd &>/dev/null; then
# See https://stackoverflow.com/a/49903434
CONTAINER_ARGS_INPUT="$@"
if [ -n "$CONTAINER_ARGS_INPUT" ]; then
echo "CONTAINER_ARGS: $@"
CONTAINER_ARGS="$(echo $@ | xxd -ps -c 0 | tr -d '\n')"
# echo "CONTAINER_ARGS_ENCODED: $CONTAINER_ARGS"
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules
# hxss
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/replace-it/bt-auto-enable-a2dp.sh"
@developer-vs
developer-vs / adb_update.sh
Created May 22, 2018 20:19
This script will update adb & fastboot to the latest version
#!/bin/bash
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip \platform-tools-latest-linux.zip
sudo cp platform-tools/adb /usr/bin/adb
sudo cp platform-tools/fastboot /usr/bin/fastboot
@higstar
higstar / bluetooth.sh
Created September 15, 2017 11:28 — forked from RamonGilabert/bluetooth.sh
Bluetoothctl automation
#!/usr/bin/expect -f
set prompt "#"
set address [lindex $argv 0]
spawn sudo bluetoothctl -a
expect -re $prompt
send "default-agent\r"
expect "Default agent request successful"
send "remove $address\r"
@pjobson
pjobson / makemkvcon_cli.md
Last active March 15, 2026 19:21
Make MKV Command Line Examples (makemkvcon)

https://www.makemkv.com/

https://www.makemkv.com/developers/usage.txt

Note: I'm not sure how well this works / doesn't work in Windows, I have little experience messing with it. If you are not very familiar with Linux, . refers to the current path, you could also specify a path like ~/Videos for your Videos path in your home directory.

ISO to MKV

makemkvcon mkv iso:./movie.iso all .
@hfreire
hfreire / rpi-usb.sh
Last active July 24, 2019 17:39
Enable/disable power on Raspberry Pi USB ports + Ethernet
#!/bin/sh
SOC_USB=/sys/devices/platform/soc/20980000.usb
if [ ! -d $SOC_USB ];
then
SOC_USB=/sys/devices/platform/soc/3f980000.usb # Raspberry Pi 3
fi
BUSPOWER=$SOC_USB/buspower
@RamonGilabert
RamonGilabert / bluetooth.sh
Last active October 12, 2023 18:24
Bluetoothctl automation
#!/usr/bin/expect -f
set prompt "#"
set address [lindex $argv 0]
spawn sudo bluetoothctl -a
expect -re $prompt
send "remove $address\r"
sleep 1
expect -re $prompt