Ngrok provides a paid service to connect custom domain to a service. This script provides similar functionality which requires to be run everytime ngrok is started/restarted.
It updates your custom domain's CNAME record to the ngrok subdomain assigned to your service.
$ ./script.sh -n [ngrok name] -k [godaddy key]:[godaddy secret] -d [godaddy domain] -s [godaddy subdomain][ngrok name]: Ngrok service name thats deployed (named service can be created using ngrok configuration file)
[godaddy key]:[godaddy secret]: GoDaddy key and secret joined using a colon
[godaddy domain]: Your domain on GoDaddy
[godaddy subdomain]: Subdomain to be created/updated by this script to have ngrok subdomain
I can later rewrite a php curl script, for godaddy(I can transparent to the OS systems). I did it before to auto make mysql databases godaddy/aws didn't network violations for this, since it was over 1000 x 2 gig dbs, on the farm. but I cheated, I stole the cookie from myself on the site, and automated some really long takeing dialogs. its nice how there is just a key and secret now. with all these oauth api coming out.
hack is to open dev tools(f10/12) in chrome, then 2nd click on the api http call and do 'copy as cURL' then paste that code,(fix it up a little), and a few variable, and add a loop and automate from database =]