Skip to content

Instantly share code, notes, and snippets.

View ashlineldridge's full-sized avatar

Ashlin Eldridge ashlineldridge

  • Melbourne, Australia
View GitHub Profile
@ashlineldridge
ashlineldridge / alert.sh
Created November 10, 2020 01:54 — 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\",
@ashlineldridge
ashlineldridge / .bash_profile
Created May 30, 2020 10:42 — forked from jonsuh/.bash_profile
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'