Skip to content

Instantly share code, notes, and snippets.

{% for record in rpz_bad_domains %}
{{ record }}
{{ record.encode('punycode') }}
{{ record.encode('punycode').decode('punycode') }}
{{ record.encode('idna') }}
{{ record.encode('idna').decode('idna') }}
{% endfor %}
@teadur
teadur / README.md
Created August 22, 2024 17:47 — forked from mattmahn/README.md
Terraform: Get current Git commit SHA

This will return the full Git commit SHA of whichever branch is currently checkedout.

Dump the snippet into terraform console (run from within a Git repo) to see for yourself.