Skip to content

Instantly share code, notes, and snippets.

@dawithers
dawithers / ender5-hex-programming.md
Last active November 6, 2020 14:17
How to flash Ender 5 Pro with hex file on a Mac
  1. Install Brew
    Open a terminal and enter the following to install Brew and follow the on screen instructions
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

  2. Install avrdude
    brew install avrdude

  3. Install USB Driver
    v1.5 CH340 Mac version - CH34x_Install_V1.5.pkg

@dawithers
dawithers / simplisafe.py
Created July 28, 2017 20:16
SimpliSafe API remote control
import requests, getopt, sys
state = sys.argv[1]
username = "username"
password = "password"
auth_uri = "https://simplisafe.com/mobile/login"
logout_uri = "https://simplisafe.com/mobile/logout"
@dawithers
dawithers / garage.rule
Created July 28, 2017 20:12
Chamberlain/LiftMaster MyQ openhab timer rule
import org.openhab.model.script.actions.Timer
var Timer timer = null
var minutes = 60
rule "Garage Open Timer"
when
Item GarageDoorString changed
then
@dawithers
dawithers / bom-daily.sh
Created April 19, 2014 16:35
Book of Mormon Daily Mailer
#!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: bom-daily period recipient"
exit
fi
recipient=$2
data="/home/dawithers/cron/bom-${recipient}"