This file contains hidden or 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
# blacklist spi and i2c by default (many users don't need them) | |
#needs to go into /etc/modprobe.d/raspi-blacklist.conf | |
#Don't blacklist spi and i2c drivers | |
#blacklist spi-bcm2708 | |
#blacklist i2c-bcm2708 |
This file contains hidden or 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
#!/bin/sh | |
# Generic Daemon start/stop script | |
# This goes to /etc/init.d folder | |
# $: /etc/init.d/btsyncd | |
# Replace: | |
# {PROGRAM} with program name [btsync] | |
# {EXEPATH} with path to program [/home/pi] | |
# {PIDFILE} with PID file name [/var/run/btsync.pid] |
This file contains hidden or 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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: webcam | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Control raspistill | |
# Description: Control raspistill camera time lapse | |
# and save images to RAM disk. |
This file contains hidden or 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
#!/bin/bash | |
#On RaspberryPi run | |
#wget http://goo.gl/l9MalS -O restDB-install | |
#sudo chmod +x restDB-install | |
#sudo ./restDB-install | |
cd /home/pi | |
wget https://github.com/rmamba/pyRestDb/archive/v0.1.tar.gz -O pyRestDB.tar.gz |
This file contains hidden or 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
#!/bin/bash | |
#On RaspberryPi run | |
#wget http://goo.gl/QaXLfr -O btsync-install | |
#sudo chmod +x btsync-install | |
#sudo btsync-install | |
cd /home/pi | |
mkdir BTSync | |
chown pi:pi BTSync |
This file contains hidden or 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
#!/bin/sh | |
#sudo update-rc.d btsyncd defaults | |
BTSYNCPATH=/home/pi/BTSync | |
do_start () { | |
$BTSYNCPATH/btsync --config $BTSYNCPATH/btsync.conf | |
} | |
do_status () { |
This file contains hidden or 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
#!/usr/bin/python | |
import sys | |
import telnetlib | |
import socket | |
import os.path | |
import urllib2 | |
import json | |
This file contains hidden or 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
{ | |
"com": "whois.internic.net", | |
"net": "whois.internic.net", | |
"org": "whois.internic.net", | |
"edu": "whois.internic.net", | |
"uk.com": "whois.uk.com", | |
"eu.org": "whois.eu.org", | |
"ac": "whois.nic.ac", | |
"al": "whois.ripe.net", | |
"am": "whois.amnic.net", |
This file contains hidden or 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
# coding:utf-8 | |
# Copyright 2011 litl, LLC. All Rights Reserved. | |
import httplib | |
import re | |
import urllib | |
import urlparse | |
from flask import Blueprint, request, Response, url_for | |
from werkzeug.datastructures import Headers |
NewerOlder