This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <IRremote.h> | |
IRsend irsend; | |
void setup() { | |
Serial.begin(9600); | |
} | |
String inData; | |
const unsigned int irTable[24][69] PROGMEM = { | |
{9110, 4522, 566, 562, 604, 536, 606, 537, 614, 528, 608, 535, 611, 532, 606, 543, 603, 534, 607, 1652, 606, 1653, 576, 1673, 591, 1675, 604, 559, 584, 1651, 603, 1677, 577, 1648, 592, 553, 604, 534, 607, 536, 583, 573, 595, 536, 606, 535, 583, 570, 597, 535, 608, 1660, 575, 1670, 610, 1668, 568, 1698, 603, 1621, 620, 1646, 580, 1676, 601, 1658, 599}, //brightup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check to see if sshfs is mounted | |
if ! [[ $(df | grep /remoterecordings) ]]; then | |
echo "SSHfs not mounted, exiting" | |
exit | |
fi | |
#Check to make sure script isnt already running | |
pidfile=/home/hts/archive.pid | |
if [ -e $pidfile ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install git -y | |
cd ~ | |
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt | |
sudo service nginx stop | |
sudo ./letsencrypt-auto certonly --standalone --agree-tos --redirect --duplicate --text --email $1 -d $2 | |
cd ~ | |
rm -rf letencrypt | |
sudo service nginx start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, sys | |
from RPi import GPIO | |
PIN = 18 | |
#0.001 ish is good | |
BUZZER_DELAY = float(sys.argv[1]) | |
REPEAT = int(sys.argv[2]) | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install default-jre screen nano -y | |
mkdir ~/Minecraft | |
cd ~/Minecraft | |
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8/minecraft_server.1.8.jar -O minecraft_server.jar | |
echo "eula=true" > ~/Minecraft/eula.txt | |
screen -dmS mc | |
sleep 2 | |
screen -S mc -X stuff "java -Xmx350M -Xms300M -jar minecraft_server.jar nogui | |
" |