Skip to content

Instantly share code, notes, and snippets.

View nkroupa's full-sized avatar

Nikodem Kroupa nkroupa

  • Olomouc, Czech Republic
View GitHub Profile
@D8xRbD
D8xRbD / disable-awdl0.sh
Created February 7, 2024 22:59
disable-awdl0.sh
#!/bin/bash
# Prompt for the sudo password at the beginning
echo "Please enter your sudo password:"
sudo -v
# Check if sudo authentication was successful
if [ $? -eq 0 ]; then
echo "Sudo authentication successful."
else
@krisek
krisek / alert.rules.yml
Last active March 25, 2026 13:27
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down