Skip to content

Instantly share code, notes, and snippets.

View diogomartino's full-sized avatar
🏠
Working from home

Diogo Martino diogomartino

🏠
Working from home
View GitHub Profile
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active July 24, 2024 10:20
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@kalinchernev
kalinchernev / countries
Created October 6, 2014 09:42
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria