Skip to content

Instantly share code, notes, and snippets.

View vcunat's full-sized avatar
💭
🇺🇦🤞🏽

Vladimír Čunát vcunat

💭
🇺🇦🤞🏽
  • cz.nic labs @CZ-NIC
  • Czech Republic
View GitHub Profile
@vcunat
vcunat / cloudfront.sh
Last active July 24, 2018 13:46 — forked from grahamc/cloudfront.sh
don't force dig to use IPv4
#!/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" "$?"
}