Skip to content

Instantly share code, notes, and snippets.

View hqmatics's full-sized avatar

Tjerk Hacquebord hqmatics

View GitHub Profile
@hqmatics
hqmatics / wiegand.c
Created September 1, 2014 14:19 — forked from hsiboy/wiegand.c
/*
* Wiegand API Raspberry Pi
* By Kyle Mallory All rights reserved.
* 12/01/2013
* Based on previous code by Daniel Smith (www.pagemac.com) and Ben Kent (www.pidoorman.com)
* Depends on the wiringPi library by Gordon Henterson: https://projects.drogon.net/raspberry-pi/wiringpi/
*
* This is linked with -lpthread -lwiringPi -lrt
*
* The Wiegand interface has two data lines, DATA0 and DATA1. These lines are normall held
<!DOCTYPE html>
<html<?php print $html_attributes; ?>>
<head>
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<?php print $styles; ?>
<?php print $scripts; ?>
</head>
<body<?php print $body_attributes;?>>
@hqmatics
hqmatics / couchpotato.sh
Created November 23, 2012 19:33 — forked from Remz-Jay/couchpotato.sh
QNAP NAS /opt/etc/init.d scripts (sickbeard, couchpotato, headphones)
#! /bin/sh
### BEGIN INIT INFO
# Provides: CouchPotato
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.