Hook up HDMI + keyboard, reboot. Press `F2` or `Del` to enter BIOS, change boot device to your USB install stick. Install like normal (dont forget to create a bios partition first on your drives, dont put boot on a lvm partition, that won’t boot). Install grub to MBR on one of your drives and…(Continue Reading)
Author: Nick Leppänen Larsson
gitea & drone release upload – invalid character ‘<' looking for beginning of value"
solution: make sure to have attachments enabled in gitea’s app.ini and if you have nginx reverse proxy infront of your gitea, bump client_max_body_size in your server directive. profit!
Manually expanding QNAP storage pool
If you like me just pulled drives from your QNAP when expanding instead of going through the “expand, pull one drive, wait for resync, pull another blabla” as the manual states, you can manually expand it by: replace /dev/md0 with your md device from cat /proc/mdstat mdadm –grow /dev/md0 –size=max and then: pvdisplay, grab the…(Continue Reading)
Kodi: “mark as watched” on tv show not working
Had an issue where “Mark as watched” did not actually mark a show as watched as seen on the “in progress shows” page, probably because I’ve removed/moved files since beginning to watch a show. solution: 1. replace XX with the showId from tvshow table. gist here select episode.idEpisode from tvshow, episode where episode.idShow = tvshow.idShow…(Continue Reading)
random android dev/debug notes
filtering logcat with grep handy aliases to filter out some of the logspam on sony/samsung devices: https://gist.github.com/frals/f9dc3a70628fbdbc6a82 function for aliasing adb -s if you have more than one android device hooked up and get tired of typing adb -s/aliasing adb in every shell: https://gist.github.com/frals/111fda81ff8e08b3f8ed usage: android_device 1 changes adb to adb -s DEVICEID, then use…(Continue Reading)
Chasing demons on Android
This was originally posted over at sinch.com, however I’m reposting it here since I wrote it So, debugging native code on Android… not the most pleasant experience I’ve had. As you may know, Sinch has this neat Android and iOS SDK for doing VOIP (voice over IP) and IM (instant messaging). To reduce the amount…(Continue Reading)
Building and running valgrind on Android
Note to self post for when the next time I need it, or: how to build and run your application under valgrind on Android (tested on 4.4). Preqres: Patience, Android NDK, rooted device, linux host (VM, or whatever). Step 1: Make sure you are running `dalvik` as your runtime. `art` might be new and flashy,…(Continue Reading)