Skip to content

Instantly share code, notes, and snippets.

View ghassanmas's full-sized avatar

Ghassan Maslamani ghassanmas

View GitHub Profile
(function() {
listnodes = document.getElementsByClassName("fieldData");
count = 0;
for (var i = 0; i < listnodes.length; i++) {
if (listnodes[i].innerHTML.match(/[0-9]+,[0-9]+|[0-9]+/)) {
str = listnodes[i].innerHTML.match(/[0-9]+,[0-9]+|[0-9]+/)[0]
} else {
continue;
}
if (str.indexOf(',') != -1) {
@cyrusboadway
cyrusboadway / google-domains-dynamic-dns-update.sh
Created February 20, 2016 17:21
Script to update a Google Domains DNS record
#!/bin/bash
### Google Domains provides an API to update a DNS "Syntheitc record". This script
### updates a record with the script-runner's public IP, as resolved using a DNS
### lookup.
###
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083
### Synthetic Records: https://support.google.com/domains/answer/6069273
USERNAME=""