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
| FROM gliderlabs/alpine | |
| RUN apk add --update git build-base linux-headers wget tar perl zlib zlib-dev bzip2 bzip2-dev && \ | |
| cd /tmp && \ | |
| wget https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz && \ | |
| tar -xzvf gflags-2.0-no-svn-files.tar.gz && \ | |
| cd gflags-2.0 && \ | |
| ./configure && make && make install && \ | |
| cd /tmp && \ | |
| wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz && \ |
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 bash | |
| # sets the brightness via xrandr on all connected displays | |
| # requirement: {sudo apt-get update && sudo apt-get install x11-xserver-utils zenity} | |
| # installation: copy "bright" to ~/bin/ and {chmod +x ~/bin/bright} it | |
| # usage: "bright" without args shows a zenity scroll dialog using this script | |
| # author: https://github.com/hbartnick 2015 | |
| function set_brightness { | |
| for output in ${outputs[@]}; do | |
| xrandr --output $output --brightness $1 |
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
| curl -XDELETE "http://localhost:9200/test" | |
| curl -XPUT "http://localhost:9200/test" -d' | |
| { | |
| "mappings": { | |
| "searchdoc": { | |
| "dynamic": "strict", | |
| "dynamic_templates": [ | |
| { | |
| "nested_du_title": { |
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
| curl -XDELETE "http://localhost:9200/test" | |
| curl -XPUT "http://localhost:9200/test/" | |
| # create strict mapping of nested in nested type with copy_to | |
| curl -XPUT "http://localhost:9200/test/searchdoc_fix/_mapping" -d' | |
| { | |
| "searchdoc_fix": { | |
| "dynamic": "strict", | |
| "properties": { | |
| "du": { |