Skip to content

Instantly share code, notes, and snippets.

View alexlancaster's full-sized avatar

Alex Lancaster alexlancaster

View GitHub Profile
@jikamens
jikamens / namecheap-dns.py
Last active January 6, 2026 18:36
namecheap-dns.py - Export/import DNS records from/to Namecheap
#!/usr/bin/env python3
"""
namecheap-dns.py - Export/import DNS records from/to Namecheap
This script can export DNS records from a domain in Namecheap to a YAML file or
import records from a YAML file in the same format into Namecheap. I use this
script to maintain my Namecheap DNS records in a source repository with change
history, i.e., "configuration as code" for my Namecheap DNS records.
@derlin
derlin / A list of country codes TLDS.md
Last active January 21, 2026 09:42
List of Country Code TLDs in CSV and JSON

This list has been extracted from https://www.worldstandards.eu/other/tlds/.

For JSON format, copy-paste the following in the developer console (Chrome):

results=[]; jQuery('table tr').each(function(){
  tds = jQuery.map(
    jQuery(this).find('td'), 
    (elt) => jQuery(elt).text()
 );