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
mkvmerge -o output.mkv --forced-track 0:no -d 0 -A -S -T --no-global-tags --no-chapters input.264 --track-order 0:0 |
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
#!/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 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 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 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 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<script type='application/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script> | |
<script type='application/javascript'> | |
$(document).ready(function() { |
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 os | |
os.environ['SDL_VIDEODRIVER'] = 'dummy' | |
import pygame | |
import curses | |
# ----------------------------------------------------------------------------- | |
class curses_screen: | |
def __enter__(self): |
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
int i, good, k, j, incoming; | |
int inPin = 3; | |
int led = 13; | |
int steps = 8; | |
int on = 0; | |
byte data_in; | |
void setup() |
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
/* DoorbellReceiver.ino - Detects signal from wireless doorbell. | |
Modified sketch (unknown licence) from Riva, to be found at | |
http://forum.arduino.cc/index.php?topic=110662.msg1094167#msg1094167 | |
DBAD Public Licence (http://www.dbad-license.org/) | |
crutzen.eu - July 2013 | |
Modified by Peter Clarke https://github.com/theapi | |
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
#define LED_LEFT_PIN 4 | |
#define LED_RIGHT_PIN 3 | |
#define PIR_LEFT_PIN 12 | |
#define PIR_RIGHT_PIN 11 | |
#define MOTOR_LEFT_PIN 6 | |
#define MOTOR_RIGHT_PIN 5 | |
OlderNewer