Skip to content

Instantly share code, notes, and snippets.

View nik012003's full-sized avatar
๐ŸŽ“
Studying at Politecnico di Bari

Nicola Guerrera nik012003

๐ŸŽ“
Studying at Politecnico di Bari
View GitHub Profile
@davidgarland
davidgarland / lineageos_simple_kernel_build.md
Last active September 27, 2025 15:27
Building LineageOS Kernels without AOSP in 2024

Normally to cross compile a LineageOS kernel requires a massive amount of storage as it requires downloading the entirety of the android source, including building LineageOS itself, which you may not care to do if you just want to fiddle with kernel configuration or patching.

Here's a way around that! (In the form of a script with comments.)

Special thanks to this blog post in particular, which does a decent job of explaining what to do-- hopefully my comments offer some additional clarification.

@wlgrd
wlgrd / Betaflight for ubuntu
Last active September 19, 2025 13:17
How to set up betaflight fc with Ubuntu
1. Create a rule for the DFU
$ (echo '# DFU (Internal bootloader for STM32 MCUs)' echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null
2. Monitor connection and find your model (unplug/plug the fc while this cmd is active)
$ udevadm monitor --environment --udev | grep ID_MODEL_ID
3. Update the /etc/udev/rules.d/45-stdfu-permissions.rules file with your model. E.g, my MODEL_ID is 5740, and the .rules file
ends up like this: