Skip to content

Instantly share code, notes, and snippets.

View chrowe's full-sized avatar

Chris Rowe chrowe

View GitHub Profile
@chrowe
chrowe / SotW-RebelMouse
Last active August 29, 2015 14:00
RebelMouse
<html>
<body>
<h1>RebelMouse</h1>
<div>
<script type="text/javascript" class="rebelmouse-embed-script" src="https://www.rebelmouse.com/static/js-build/embed/embed.js?site=SummerontheWaterfrontBoston&height=1500&flexible=0&dont_load_new_posts=0&scrollbar_theme=default&show_rebelnav=1"></script>
</div>
</body>
<html>
<!DOCTYPE html>
<html>
<head>
<!-- EXTERNAL LIBS-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://www.google.com/jsapi"></script>
<!-- EXAMPLE SCRIPT -->
<script>
@chrowe
chrowe / log
Created March 9, 2015 01:29
OPK install
pi@temper4 ~ $ wget http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
--2015-03-08 21:25:11-- http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
Resolving node-arm.herokuapp.com (node-arm.herokuapp.com)... 54.243.70.214
Connecting to node-arm.herokuapp.com (node-arm.herokuapp.com)|54.243.70.214|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5745294 (5.5M) [application/x-debian-package]
Saving to: `node_0.10.36_armhf.deb'
100%[================================================================================>] 5,745,294 7.69M/s in 0.7s
@chrowe
chrowe / monitor.py
Created April 6, 2015 04:08
1 Wire scripts
#!/usr/bin/env python
import sqlite3
import os
import time
import glob
# global variables
speriod=(15*60)-1
mkdir drivers
git clone https://github.com/openpipekit/opk-temper1-cli.git
git clone https://github.com/openpipekit/opk-phant-cli.git
./drivers/opk-temper1-cli/install
sudo ./drivers/opk-temper1-cli/detect
sudo ./drivers/opk-temper1-cli/pull --path 0001:0005:01 --scale farenheit
@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"
==> INSTALL START -> checkpoint:
* Your e-mail address appears to be my@email.com - is that correct?
* Your IP address appears to be - are you sure it's a valid IP?
* Your hostname appears to be - are you sure it's a valid FQDN hostname?
NOTE: If your outgoing SMTP requires using relayhost, define first _SMTP_RELAY_HOST.
* Your core Aegir instance control panel will be available at http://.
* Your (optional) MultiCore Apache Solr Tomcat will listen on localhost:8080.
==> EXIT on error due to invalid DNS setup.
* Your custom _MY_OWNIP is set to "66.25.167.202"
* Your custom _MY_HOSTN is set to "octopus.chr.dyndns.org"
* Your custom _MY_FRONT is set to "aegir.octopus.chr.dyndns.org"
* Your _MY_HOSTN and/or _MY_FRONT doesn't match your _MY_OWNIP,
or your hostname is not set properly yet.
* Please add/check correct line in your /etc/hosts file on the server: