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
| #/etc/dhcp/dhcpd.conf | |
| option domain-name "local"; | |
| option domain-name-servers 8.8.8.8, 8.8.4.4; | |
| max-lease-time 3600; | |
| default-lease-time 3600; | |
| log-facility local7; |
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
| """ | |
| ldr.py | |
| Display analog data from Arduino using Python (matplotlib) | |
| Author: Mahesh Venkitachalam | |
| Website: electronut.in | |
| """ | |
| import sys, serial, argparse |
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
| https://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/ | |
| sudo apt-get install ia32-libs | |
| sudo apt-get purge openjdk* | |
| #java ORACLE installieren Debian http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html | |
| echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list |
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
| ######################################## | |
| ----Raspberry Cheat Sheet--------------- | |
| by Malef | |
| ######################################## | |
| #change hostname: | |
| sudo nano /etc/hosts | |
| 127.0.1.1 myname | |
| sudo nano /etc/hostname | |
| myname |
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 | |
| # -*- coding: utf-8 -*- | |
| # This script was originally created by by killagreg î Thu Dec 18, 2014 7:53 am | |
| # see http://www.raspberrypi.org/forums/viewtopic.php?p=656881#p656881 | |
| # This script implements a motion capture surveillance cam for raspberry pi using picam | |
| # and is based on the picamera python library. | |
| # It uses the "motion vectors" magnitude of the h264 hw-encoder to detect motion activity. |
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 | |
| import picamera | |
| import socket | |
| with picamera.PiCamera() as camera: | |
| camera.resolution = (1296, 730) | |
| camera.vflip = True | |
| camera.start_preview() |
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
| # | |
| # /etc/systemd/system/supervisord.service | |
| # | |
| [Unit] | |
| Description=supervisord - Supervisor process control system for UNIX | |
| Documentation=http://supervisord.org | |
| After=network.target | |
| [Service] |
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/bash | |
| VENV=$1 | |
| if [ -z $VENV ]; then | |
| echo "usage: runinenv [virtualenv_path] CMDS" | |
| exit 1 | |
| fi | |
| . ${VENV}/bin/activate | |
| shift 1 | |
| echo "Executing $@ in ${VENV}" | |
| exec "$@" |
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 | |
| # | |
| #simple app to read string from serial port | |
| #and publish via MQTT | |
| # | |
| #uses the Python MQTT client from the Mosquitto project | |
| #http://mosquitto.org | |
| # | |
| #Andy Piper http://andypiper.co.uk | |
| #2011/09/15 |
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
| /* | |
| * motion_detect.cpp | |
| * To accompany instructions at: | |
| * http://sidekick.windforwings.com/2012/12/opencv-motion-detection-based-action.html | |
| * | |
| * Created on: Dec 02, 2012 | |
| * Author: tan | |
| * | |
| */ | |
| #include <iostream> |