A script for when your Raspberry Pi drops its wifi network connection

After moving into my new apartment, my Raspberry Pi Radio (also known as “Al Radio” or “Radio Pi”) kept dropping its WiFi network connection. I couldn’t figure out why, but finally realized the RPI dropped the network connection whenever I ran the microwave oven. After a few hard RPI reboots I realized that I needed to find a solution, and I just found this “Rebooting the Raspberry Pi WiFi” article.