Blackmagic probe revisited

Turn Your $2 STLink Clone Into a Black Magic Probe TLDR: Transform that cheap STLink V2 clone into a proper debugger by flashing Black Magic Probe firmware. 15 minutes of work, intermediate difficulty, and a surprisingly good outcome for something that probably came in a plastic bag with no labels. Historical Context Back in 2016,

Raspbian headless install over Wifi

TLDR; Configure your new PI without a monitor Just follow this guide to install your raspberry pi 3 without a monitor. It enables wifi and ssh in the default raspbian installation. install raspbian on your sdcard: export DEV=/dev/sdX; \ unzip 2017-04-10-raspbian-jessie-lite.zip ;\ cd 2017-04-10-raspbian-jessie-lite ;\ sudo dd if=2017-04-10-raspbian-jessie-lite.img of=$DEV bs=4M && sudo sync mount boot partition

Earn money with your smartphone

TLDR; Let your smartphone mine cryptocurrencies I like money. Money is even better if you don’t have to work for it. So I set up my smartphone as a zcash node. Zcash is similar to bitcoins: You exchange computing power for virtual money. This post is twofold: First the hardware modification to keep the CPU

Blackmagic probe

TL;DR: Flash new software to a cheap STLink v2 clone to get an integrated gdb Essentially, I just followed the the instructions in their wiki. I still had some problems guessing the pinout and documented my progress. Hardware: To program the controller with new software you need a second programmer. I used another STLink clone

ESP8266 + Arduino + Eclipse

TL;DR: PlatformIO offers a complete toolchain, libraries, makefile and IDE integration Making a new microcontroller work is hard. You need to get a feel for the surrounding community and the way the manufacturer imagined them to work. PlatformIO solves all those problems and more. What you get is: the toolchain package management for libraries makefile

Enabling zram

TL;DR: modprobe zram num_devices=$(nproc) && \ sleep 1; \ for i in $(eval echo zram{0..$(( $(nproc) -1))}); do \ zramctl -t 1 -a lzo $i -s $(( 4096 * 1024 * 1024 / $(nproc) )); \ mkswap /dev/$i; \ swapon /dev/$i -p 1; \ done && \ sysctl vm.swappiness=100 && \ echo 0 > /proc/sys/vm/page-cluster