Skip to content

Instantly share code, notes, and snippets.

@EncryptedCurse
EncryptedCurse / osmcCodecPatch.sh
Last active October 10, 2022 03:10
Raspberry Pi MPEG-2, VC-1 license patch
sudo su <<EOF
cd /boot
cp start_x.elf start_x.elf_backup && \
perl -pne 's/\x47\xE9362H\x1D\x18/\x47\xE9362H\x1D\x1F/g' < start_x.elf_backup > start_x.elf
EOF
@EncryptedCurse
EncryptedCurse / WatermelonDB downsides.md
Last active June 8, 2021 02:46
WatermelonDB downsides
  1. It's a headache to setup with a create-react-app project. I had to install a lot of dependencies to get it up and running: react-app-rewired, customize-cra, and various Babel plugins to add support for decorators, which required creating .babelrc + config-overrides.js and modifying package.json.

  2. There is no existing, drop-in remote sync backend. The WatermelonDB documentation only mentions two examples, neither of which appear to be well-supported or widely used. You're essentially on your own to implement the backend.

  • How to Build WatermelonDB Sync Backend in Elixir seems more of an example than a production-ready solution.
  • Firemelon is built for Firestore — niche.
  1. While both are technically supported, WatermelonDB seems to be more geared towards React Native than React Web. RxDB, on the other hand, explicitly states multiple
@EncryptedCurse
EncryptedCurse / setup-audio.sh
Created June 27, 2021 17:40
Andronix sound fix script (deobfuscated): https://docs.andronix.app/hardware/sound
pkg install pulseaudio
dir=$(pwd)
if grep -q "anonymous" ~/../usr/etc/pulse/default.pa
then
echo "module already present"
else
echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" >> ~/../usr/etc/pulse/default.pa
fi
if grep -q "exit-idle" ~/../usr/etc/pulse/daemon.conf
then
@EncryptedCurse
EncryptedCurse / IPA-Sources.md
Created December 14, 2025 19:06 — forked from ongkiii/IPA-Sources.md
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj

This PowerShell script will disable the ability to eject specific hardware devices in Windows.

I personally use it to prevent accidentally ejecting the USB drive that I am booting a persistent Windows installation from.

Script

$DeviceSubKeys = @('USB\VID_1234&PID_9876\...')

$CM_DEVCAP_EJECTSUPPORTED = 0x2
$CM_DEVCAP_REMOVABLE      = 0x4
@EncryptedCurse
EncryptedCurse / product.json
Last active May 25, 2026 05:11
VS Code OSS Microsoft extension gallery (from v1.121.0)
"extensionsGallery": {
"nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/",
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"itemUrl": "https://marketplace.visualstudio.com/items",
"publisherUrl": "https://marketplace.visualstudio.com/publishers",
"resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",
"extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
"controlUrl": "https://main.vscode-cdn.net/extensions/marketplace.json",
"mcpUrl": "https://main.vscode-cdn.net/mcp/servers.json",
"accessSKUs": ["copilot_enterprise_seat", "copilot_enterprise_seat_quota", "copilot_enterprise_seat_multi_quota", "copilot_enterprise_seat_assignment", "copilot_enterprise_seat_assignment_quota", "copilot_enterprise_seat_assignment_multi_quota", "copilot_enterprise_trial_seat", "copilot_enterprise_trial_seat_quota", "copilot_for_business_seat", "copilot_for_business_seat_quota", "copilot_for_business_seat_mul