This file contains 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
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER" && start "" %1" |
This file contains 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
local buffer = {} | |
signlib = {} | |
local cursorX = 1 | |
local cursorY = 1 | |
local empty = {} | |
local lines = 4 | |
local width = 15 | |
local writecolor = "c" |
This file contains 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 for prometheus | |
[Service] | |
Type=oneshot | |
ExecStart=node_exporter | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
wget https://github.com/prometheus/node_exporter/releases/download/v1.1.1/node_exporter-1.1.1.linux-amd64.tar.gz | |
tar xvfz node_exporter-*.*-amd64.tar.gz | |
cd node_exporter-*.*-amd64 | |
sudo cp node_exporter /usr/local/bin | |
wget https://gist.githubusercontent.com/EmmaKnijn/d22f46ae7ffbd917f0bb28b6be94c74c/raw/765f38d9c6efcf3fda0b73bdeb1fa01c791836f0/exporter.service | |
sudo cp exporter.service /etc/systemd/system/ | |
sudo systemctl enable --now exporter | |
watch sudo systemctl status exporter |