Skip to content

Instantly share code, notes, and snippets.

View xHeinrich's full-sized avatar
😳
uwu

Nathan Heinrich xHeinrich

😳
uwu
View GitHub Profile
@xHeinrich
xHeinrich / install.sh
Last active January 23, 2021 01:07
Install node_exporter
#!/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
@xHeinrich
xHeinrich / Auth.php
Created February 4, 2018 13:27
Wordpress Auth/Request Wrapper for Sage
<?php
sage()->instance('sage.request', Request::capture());
sage()->singleton('sage.auth', function() {
return new Auth();
});
function auth() {