Skip to content

Instantly share code, notes, and snippets.

View chrowe's full-sized avatar

Chris Rowe chrowe

View GitHub Profile
@chrowe
chrowe / autorun.sh
Last active August 29, 2015 14:26 — forked from treehouse-su/autorun.sh
temper1 OPK script
#!/bin/sh
# configure pirateship image
sudo pirateship rename temper
sudo pirateship adapter pirate.sh/ip "" none
# install opk drivers
# NOTE: must manually copy phant 'keys_*.json' file to /boot directory
cd /root
@chrowe
chrowe / autorun.sh
Last active August 29, 2015 14:26
OPK water temps
#!/bin/bash
cd /root
watch -n600 "./opk-temper1-cli/pull --scale farenheit | ./opk-wrap/wrap -s JSON -k temp | ./opk-phant-json/push ; ./opk-1-wire-cli/pull --path 041471d2a2ff --scale fahrenheit | ./opk-cli--phant/push --public_key VGAXp1b2bgtmVJK9JqMJ --private_key 9YAg2kBaBZTk8oa4ovwo --url data.sparkfun.com --field_name temp"
#!/bin/bash
SET=35
echo "$SET" > "./set.txt"
IN=`/data/opk-1-wire-cli/pull -p 041471b7f4ff -s f -r`
OUT=`/data/opk-1-wire-cli/pull -p 041471b95dff -s f -r`
#echo "IN = "$IN
#echo "OUT = "$OUT
@chrowe
chrowe / README.md
Last active March 25, 2016 04:28
Scripts to set up a site on our dev server

Use the site.sh script to create create a directory, download a git repo, create a log directory, set up settings.local.php, create a database, chreate a vhost file, and import a db backup

The other scripts are called by site.sh

Usage: site.sh [subdomain] [git url] [New MySQL password for site] [Database backup path] [http/https]

Script asks for the MySQL Root password

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrowe
chrowe / README.md
Last active February 13, 2017 01:18
Node-red
@chrowe
chrowe / manual_steps.md
Last active February 12, 2017 04:13
Pi Ansible
## AWS
cd /var/lib/cassandra/
tar -czvf /home/ubuntu/aws-data.tgz data
scp /home/ubuntu/aws-data.tgz sw:~/
## SW
cd /var/lib/cassandra/
rm -rf ./data
tar -zxvf /root/aws-data.tgz
@chrowe
chrowe / README.md
Last active May 18, 2017 18:35
Ubuntu setup on Dell Inspiron 15 7559

h2. Done