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
| vi /etc/systemd/system/node_exporter.service | |
| --collector.systemd.unit-whitelist='(zookeeper|ssh).service' \ | |
| systemctl daemon-reload | |
| systemctl restart node_exporter | |
| /etc/default/prometheus-node-exporter | |
| ARGS="--collector.systemd.unit-whitelist=\"(ssh).service\"" |
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 flask import Flask | |
| import sys, serial, time | |
| app = Flask(__name__) | |
| portName = '/dev/ttyUSB0' | |
| baudRate = 9600 |
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
| [Unit] | |
| Description=Node Exporter | |
| Wants=network-online.target | |
| After=network-online.target | |
| [Service] | |
| User=node_exporter | |
| Group=node_exporter | |
| Type=simple | |
| ExecStart=/usr/local/bin/node_exporter |
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
| var skip = "false"; | |
| function dump(obj) { | |
| var out = ""; | |
| if(obj && typeof(obj) == "object"){ | |
| for (var i in obj) { | |
| out += i + ": " + obj[i] + "\n"; | |
| if(obj[i] == "playback_play"){ | |
| if(window.skip == "true"){ | |
| window.skip = "false"; | |
| var iframe = document.getElementById('camera'); |
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
| <?php | |
| /* | |
| insert into flussonic.conf: | |
| web_script securetoken /etc/flussonic/securetoken.lua key=mysecretkey password=mypassword; | |
| auth /etc/flussonic/securetoken.lua key=mysecretkey; | |
| Read more at: | |
| English - http://flussonic.com/doc/auth/securelink | |
| Russian - http://erlyvideo.ru/doc/auth/securelink | |
| */ |