Skip to content

Instantly share code, notes, and snippets.

@syncip
syncip / ntfy_check.sh
Created January 10, 2024 19:06
Prüfen ob ntfy läuft und korrekt Nachrichten empfängt und sendet
#!/bin/bash
link="https://ntfy.XXX.com/upcheck"
# uuid generieren
uuid="$(uuidgen)"
# Nachricht senden
/bin/curl -s -w 5 -d "${uuid}" ${link} > /dev/null
@syncip
syncip / ntfy.yaml
Created January 5, 2024 15:52
ntfy crowdsec notification example
# /etc/crowdsec/notifications/ntfy.yaml
type: http # Don't change
name: ntfy # Must match the registered plugin in the profile
# One of "trace", "debug", "info", "warn", "error", "off"
log_level: trace
# group_wait: # Time to wait collecting alerts before relaying a message to this plugin, eg "30s"
# group_threshold: # Amount of alerts that triggers a message before <group_wait> has expired, eg "10"
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg -y
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \