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 | |
| # Download, unzip and clean up the binary | |
| wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz | |
| tar -xzvf node_exporter-1.0.1.linux-amd64.tar.gz | |
| sudo mv node_exporter-1.0.1.linux-amd64/node_exporter /usr/local/bin/ | |
| rm -rf node_exporter-1.0.1.linux-amd64.tar.gz | |
| rm -rf node_exporter-1.0.1.linux-amd64 | |
| # add a user for it |
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 | |
| sage()->instance('sage.request', Request::capture()); | |
| sage()->singleton('sage.auth', function() { | |
| return new Auth(); | |
| }); | |
| function auth() { |