Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimír Čunát vcunat

View GitHub Profile
@vcunat
vcunat / cloudfront.sh
Last active Jul 24, 2018 — forked from grahamc/cloudfront.sh
don't force dig to use IPv4
View cloudfront.sh
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bind.dnsutils -p traceroute -p curl
# impure: needs ping
#source: https://s3.amazonaws.com/aws-cloudfront-testing/CustomerTesting.html
function _e {
echo "> $@"
eval "$@" 2>&1 | sed -e "s/^/ /"
printf "Exit: %s\n\n\n" "$?"
}