Write-ups and random notes Table of Contents Scalable and Reliable Systems Design Notes Detecting and controlling mains voltages with a Raspberry Pi or Arduino