v4l2-ctl --list-devices
mmal service 16.1 (platform:bcm2835-v4l2):
/dev/video0
HD Pro Webcam C920 (usb-3f980000.usb-1.2):
/dev/video1
| #!/usr/bin/awk -f | |
| # This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
| # My copy here is written in awk instead of C, has no compelling benefit. | |
| # Public domain. @thingskatedid | |
| # Run as awk -v x=xyz ... or env variables for stuff? | |
| # Assumptions: the data is evenly spaced along the x-axis | |
| # TODO: moving average |
| (require '[amazonica.aws.s3 :as s3]) | |
| (import '[com.amazonaws.services.s3.model Tag ObjectTagging]) | |
| (def bucket "bucket") | |
| (def kkey "key") | |
| (def file (clojure.java.io/file "file")) | |
| (defn tags->tagging [tags] | |
| (->> tags | |
| clojure.walk/stringify-keys |
| (ns error-boundary.error-boundary | |
| (:require [reagent.core :as r] | |
| [reagent.impl.component :as comp] | |
| [reagent.impl.util :as util] | |
| [goog.object :as gobj])) | |
| ;; (c) 2016 Paulus Esterhazy | |
| ;; | |
| ;; License: MIT |
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # [email protected] | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
| from phue import Bridge | |
| import colorsys, time, re, random | |
| #setup bridge | |
| b = Bridge('192.168.XXX.XXX') #hue bridge IP address. | |
| b.connect() | |
| # I grouped the different set's of fixtures in the office into arrays | |
| # which made sense based on their physical locaiton in the office. | |
| # The numbers in the array are the same number used in the hue app to identify |
| #!/usr/bin/env python | |
| import requests | |
| import json | |
| import paho.mqtt.publish as pahopub | |
| hostname = 'localhost' | |
| port = 1883 | |
| topic = 'owntracks/jpm/iss' | |
| auth = { 'username' : 'xxx', 'password' : 'xxx' } |
(:identity req) is auth backend independent way to access user data:current-user doesn't imply that authentication is required, route should also have :auth-rules if authentication is requiredDate: 2014-10-11
Author: Fredrik Boulund
System: HP Microserver running Debian Linux (Debian 7.5 Wheezy)
TLDR: Short recipe to enable Bluetooth A2DP server that is always visible, with automatic bluetooth device pairing, and automatic pulseaudio module loading on Debian 7.5 wheezy.
Thanks to:
Joerg Schiller (https://gist.github.com/joergschiller)
Domen Puncer (https://gist.github.com/domenpuncer)
Daniel Hodgson (https://gist.github.com/Toasty27)