Skip to content

Instantly share code, notes, and snippets.

@sdkks
sdkks / .vacuum-nodes.sh
Created July 14, 2018 15:40
Vacuum journalctl of nodes in your inventory
#!/usr/bin/env bash
exitCode(){
case $1 in
0)
echo "Completed with success"
;;
*)
echo "Exited with failure: $1"
;;
@sdkks
sdkks / curl_timer.sh
Created June 2, 2018 17:31
Get URL Load Speed Using CURL
#!/usr/bin/env bash
case $1 in
http*)
URL="$1"
;;
*)
echo "Please provide URL as positional parameter. i.e.: ./script <url>"
exit 1
;;
esac