Skip to content

Instantly share code, notes, and snippets.

View swoodford's full-sized avatar

Shawn Woodford swoodford

View GitHub Profile
How to make a DIY home alarm system with a raspberry pi and a webcam
https://medium.com/@Cvrsor/how-to-make-a-diy-home-alarm-system-with-a-raspberry-pi-and-a-webcam-2d5a2d61da3d
USING A STANDARD USB WEBCAM
http://www.raspberrypi.org/documentation/usage/webcams/
TIME-LAPSE SETUP USING A USB WEBCAM
http://www.raspberrypi.org/learning/webcam-timelapse-setup/worksheet.md
Raspberry Pi remote webcam
#!/usr/bin/env python
"""
A script to query the Amazon Web Services usage reports programmatically.
Ideally this wouldn't exist, and Amazon would provide an API we can use
instead, but hey - that's life.
Basically takes your AWS account username and password, logs into the
website as you, and grabs the data out. Always gets the 'All Usage Types'
<?php
$file='ip-list.txt';
$closeness=32768; // 65536 131072;
$minrelated=4;
$sorted=array();
$ips=file($file);
echo '<pre style="white-space:pre-wrap;">',count($ips)," IPs <br>\r\n"; flush();