Skip to content

Instantly share code, notes, and snippets.

View mrwhizzy's full-sized avatar

Christos Melas mrwhizzy

  • Skroutz S.A.
  • Athens, Greece
View GitHub Profile
[alias]
#? = diff
a = help
ai = init
aixas = revert
alaks = mv
apan = rebase
diks = show
fer = clone
graps = commit
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active September 30, 2024 05:52
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)