Skip to content

Instantly share code, notes, and snippets.

Avatar

Don Howdeshell dhowdy

View GitHub Profile
View gist:d3258c3240b5d9a77126a0e6d34b395a
cat <<EOF > /lib/systemd/system/[[[name]]].service
[Unit]
Description=[[[The Service to watch]]]
After=local-fs.target
[Service]
Type=simple
PIDFile=/var/run/[[[name]]].pid
ExecStart=/opt/[[[script.sh]]]
Restart=always
@dhowdy
dhowdy / laundry-spy.ino
Last active Jun 14, 2018 — forked from savetheclocktower/laundry-spy.ino
Laundry Spy firmware
View laundry-spy.ino
// (see the blog post at https://andrewdupont.net/2018/04/27/laundry-spy-part-3-the-software/)
// Version 1.0 by https://github.com/savetheclocktower
// Version 1.1 by https://github.com/dhowdy/
// GENERAL CONFIG
// ==============
// The baud rate of serial output for logging. If necessary, change the baud
// rate in your Serial Monitor to match this.
#define BAUD_RATE 115200