This mini script is a dynamic DNS updater script specific for subdomain usage on already set up subdomains for domains hosted on Digitalocean.
Uses bash, curl and jq to interact with the API and update the subdomains ip. Only 3 variables need to be declared and it's ready to go. Other than that it needs a crontab entry so it updates the IP. Everything is explained in the gist.