This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
| # first install pygmentize to the mac OS X or macOS system with the built-in python | |
| sudo easy_install Pygments | |
| # then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc. | |
| alias pcat='pygmentize -f terminal256 -O style=native -g' |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
| #!/bin/bash | |
| basename=/mnt/warehouse/grouch_core/live/grouch_ramdisk | |
| mkdir -p $basename/$1 | |
| ( | |
| cd $basename/$1 | |
| /usr/local/bin/ffmpeg -i rtmp://172.16.1.14/publish/$1 \ | |
| -acodec copy \ | |
| -f segment \ | |
| -flags -global_header \ | |
| -map 0 \ |
| This is an example how to perform multi-select faceting in ElasticSearch. | |
| Selecting multiple values from the same facet will result in an OR filter between each of the values: | |
| (facet1.value1 OR facet1.value2) | |
| Faceting on more than one facet will result in an AND filter between each facet: | |
| (facet1.value1 OR facet1.value2) AND (facet2.value1) | |
| I have chosen to update the counts for each facet the selected value DOES NOT belong to since we are performing an AND between each facet. I have included an example that shows how to keep the counts if you don't want to do this (filter0.sh). |