Skip to content

Instantly share code, notes, and snippets.

View freyacodes's full-sized avatar
🏳️‍⚧️

Freya Arbjerg freyacodes

🏳️‍⚧️
View GitHub Profile
@sioodmy
sioodmy / README.md
Created November 2, 2022 19:53
Hyprland on NixOS with nvidia driver - screenshare worky edition
@schnapster
schnapster / prometheus_b2_backup.sh
Last active May 27, 2022 10:22
Backup Prometheus v2.1+ snapshots to b2 backblaze. Requires b2, curl, jq, tar
#!/bin/bash
#
# Prerequisites:
# sudo apt install python-pip curl jq tar
# sudo pip install b2
#
# Enabled admin api in your prometheus, see: https://prometheus.io/docs/prometheus/2.1/querying/api/#tsdb-admin-apis
#
# pass 6 args:
# - prometheus base url, example: http://localhost:9090