Skip to content

Instantly share code, notes, and snippets.

@perigee
perigee / Docker.md
Last active August 29, 2015 14:18
Docker cheating sheet

Docker


Prerequisites

Installation

The installation of docker is out of scope of this tutorial, please refer the official document for the docker installation.

Hardware

Logitech C920 h264 direct output

ffmpeg with -vcodec for input streaming

$ ffmpeg -s 1920x1080 -f v4l2 -vcodec h264 -i /dev/video0 \
                   -vcodec copy -f rtp rtp://192.168.0.10:8090/
@perigee
perigee / Vagrantfile
Last active August 29, 2015 14:09
Vagrant_ansible
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
"""
Simple Linear Probabilistic Counters
Credit for idea goes to:
http://highscalability.com/blog/2012/4/5/big-data-counting-how-to-count-a-billion-distinct-objects-us.html
http://highlyscalable.wordpress.com/2012/05/01/probabilistic-structures-web-analytics-data-mining/
Installation:
pip install smhasher
pip install bitarray