Skip to content

Instantly share code, notes, and snippets.

View nzjjay's full-sized avatar

Jay J nzjjay

  • Auckland, New Zealand
View GitHub Profile
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 4.0
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
@nzjjay
nzjjay / KinectWinHello.reg
Last active January 5, 2026 01:54
The registry file to enable Kinect v2 for Windows to work as a Windows Hello camera for your Windows 10 device.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DriverFlighting\Partner]
"TargetRing"="Drivers"
#Jay Janarthanan 2015 - motion.py
#Insert PIR Motion Sensor Data into GPIO Port 14 (Pin 8) on RPi 1 Model B Rev 2
import time
import RPi.GPIO as io
io.setmode(io.BCM)
motion_pin = 14 #GPIO Pin of Data insert
io.setup(motion_pin, io.IN) #Activate the Pin, and set IO to be in
@nzjjay
nzjjay / temp.py
Last active August 29, 2015 14:24
# (c) Jay Janarthanan 2015.
# http://jay.appavate.com
# You can use the code below freely under a GNU license.
import os, glob, time, sys, datetime
#initiate the temperature sensor in Parasitic mode
os.system('sudo modprobe w1-gpio pullup=1')
os.system('sudo modprobe w1-therm strong_pullup=1')