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 time, signal, sys | |
from Adafruit_ADS1x15 import ADS1x15 | |
def signal_handler(signal, frame): | |
print 'You pressed Ctrl+C!' | |
sys.exit(0) | |
signal.signal(signal.SIGINT, signal_handler) | |
#print 'Press Ctrl+C to exit' |
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/env python | |
# Thanks to http://www.youtube.com/watch?v=Dc16mKFA7Fo | |
import time | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BOARD) | |
ControlPin = [18,22,24,26] |
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
<?php | |
/** | |
* @file | |
* drush command. | |
*/ | |
/** | |
* Implementation of hook_drush_command(). | |
* |
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 | |
# apt-get install inotify-tools | |
# apt-get install mkvtoolnix | |
WATCHED_DIR="/mnt/sda1/cctv/videos" | |
echo "Watching directory: $WATCHED_DIR for new files" | |
inotifywait -m -q -e create -r "$WATCHED_DIR" --format "%w%f" | | |
while read file |
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
mkvmerge -o output.mkv --forced-track 0:no -d 0 -A -S -T --no-global-tags --no-chapters input.264 --track-order 0:0 |
NewerOlder