Skip to content

Instantly share code, notes, and snippets.

@alekc
alekc / alert.sh
Created May 14, 2020 09:11 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@alekc
alekc / alert.sh
Created May 14, 2020 09:11 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
rm ~/Library/Preferences/com.bjango.istatmenus.plist
@alekc
alekc / remove-all-from-docker.sh
Last active November 7, 2018 15:43 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
docker system prune
docker volume prune
docker rmi -f `docker images -qa `
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`