Skip to content

Instantly share code, notes, and snippets.

@EmmaKnijn
EmmaKnijn / exporter.sh
Created January 15, 2024 09:55
quick install script for node_exporter
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
@EmmaKnijn
EmmaKnijn / exporter.service
Created January 15, 2024 09:54
node_exporter for prometheus
[Unit]
Description=node_exporter for prometheus
[Service]
Type=oneshot
ExecStart=node_exporter
[Install]
WantedBy=multi-user.target
local buffer = {}
signlib = {}
local cursorX = 1
local cursorY = 1
local empty = {}
local lines = 4
local width = 15
local writecolor = "c"
@EmmaKnijn
EmmaKnijn / thing.bat
Created January 20, 2022 12:25
basically runs %1 as the current user
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER" && start "" %1"