Skip to content

Instantly share code, notes, and snippets.

# It can take up to several hours for ACM to validate the domain name and issue the certificate
# so better be sure it's working.
require 'csv'
require 'resolv'
res = open("DNS_Configuration.csv") # Export DNS configuration to a file
row = CSV.new(res.read, headers: true).first
expected = row["Record Value"].delete_suffix('.')
@voke
voke / country-isocodes
Last active December 25, 2015 12:09
ISO Country Codes (unofficial names)
AFGHANISTAN;AF
ÅLAND ISLANDS;AX
ALBANIA;AL
ALGERIA;DZ
AMERICAN SAMOA;AS
ANDORRA;AD
ANGOLA;AO
ANGUILLA;AI
ANTARCTICA;AQ
ANTIGUA AND BARBUDA;AG