Digitally sign drivers in Ubuntu 17

I cane across the solution when installing Virtual box on Ubuntu but got the old

modprobe: ERROR: could not insert 'vboxdrv': Required key not available

I was having the same issue with my r8152 drivers for my Lenovo Thunderbolt 3 dock

This(https://forums.lenovo.com/t5/Linux-Discussion/X1-5th-and-Thundebolt3-dockstation-no-ethernet-with-Debian/td-p/3730394) article got me 90% of the way to a solution but I wasn’t able to load the driver.

The soltuion was fialry simple. Create a key, trust the key, use the key to sign the driver, reboot, Import the key during the MOK management boot screen, reboot, modprobe the driver, All good :)

https://gorka.eguileor.com/vbox-vmware-in-secureboot-linux/

ESP8266 Watchdog

When developing on an ESP8266 I came across the issue of the WDT not being triggered by my code and subsequently getting reset by the hardware WDT.

Here is one of the few useful resources I found on the topic – https://techtutorialsx.com/2017/01/21/esp8266-watchdog-functions/

Essentially it’s as simple as adding ESP.wdtFeed(); to your loop to reset the WDT so it doesn’t time out and get rebooted.