Skip to content

Instantly share code, notes, and snippets.

View amcolash's full-sized avatar

Andrew McOlash amcolash

View GitHub Profile
@amcolash
amcolash / wakeup
Last active December 26, 2016 23:09
Simple script to toggle display based off of PIR hooked up to sbc
#!/bin/bash
# /etc/init.d/wakeup
### BEGIN INIT INFO
# Provides: Wakeup for Display
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Wakeup at boot
@amcolash
amcolash / wakeup
Last active September 7, 2018 07:28
Wakeup script in python and upstart script for my magic mirror. This allows for the mirror to turn on from a motion sensor.
#!/bin/bash
# /etc/init.d/wakeup
### BEGIN INIT INFO
# Provides: Wakeup for Display
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Wakeup at boot
@amcolash
amcolash / gist:faaacae603241a520d7cbfc6c3c1bad8
Last active May 7, 2016 16:22
Wifi install script for Raspberry Pi
wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
gunzip install-wifi.tar.gz
tar xvf install-wifi.tar install-wifi