Skip to content

Instantly share code, notes, and snippets.

"""
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
@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.

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 / 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.

@perigee
perigee / Streaming.md
Last active April 11, 2022 18:02
Streaming related subjects

Fundamental Information

Protocols and formats

A brief description of streaming protocols and formats here

Fantastic blog for video streaming

Server Settings

MQTT

  1. mqtt cluster building

Nginx

Installation (with script for ubuntu upstart, systemd for other linux)

@perigee
perigee / Hardconfig.md
Last active August 29, 2015 14:20
Hardwares configuration, for example touchpad on laptop

#LapTop

####Touchpad off

The detail explanation can be found here

> synclient TouchpadOff=1

\

#Asterisk

Dockerize

  1. Asterisk with several udp ports open for simultaneously call handling
  2. Configuration files integration

MongoDB connection CDR

@perigee
perigee / tmp.md
Last active January 14, 2016 17:56

TODO


  • coupe with the stuffs for on-perm
  • update the documentation