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