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
| #!/bin/sh | |
| echo "Create index: " | |
| # 64-bit long (-2^63..2^63-1) and double values are used | |
| # all fields can take arrays as well but it's not possible to mix the types | |
| curl -XPOST localhost:9200/transaction_temp -d '{ | |
| "mappings" : { | |
| "live" : { | |
| "_source" : { "enabled" : true }, | |
| "dynamic" : false, |
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
| #!/bin/bash | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. |
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/python3 | |
| from time import sleep, time | |
| import miio | |
| from prometheus_client import start_http_server, Gauge | |
| if __name__ == '__main__': | |
| MONITOR_IP = '192.168.88.100' | |
| MONITOR_TOKEN = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
OlderNewer