Skip to content

Instantly share code, notes, and snippets.

View itmayziii's full-sized avatar

Tommy May itmayziii

View GitHub Profile
@itmayziii
itmayziii / package.json
Last active September 4, 2021 20:38
Terraform IAM Bindings GCP Service Agents
{
"type": "module",
"private": true,
"author": "Tommy May III <[email protected]>",
"license": "MIT",
"dependencies": {
"node-fetch": "~3.0.0",
"node-html-parser": "~4.1.4"
}
}
@itmayziii
itmayziii / domain-testing.js
Last active September 5, 2020 22:52
Check a list of Domains from GoDaddy to see if they are available by calling their API. The GoDaddy API is limited to 60 requests per second so this script can be slow if you have a lot of domains.
/**
* Follow the docs here - https://developer.godaddy.com/getstarted to get credentials and learn about the Go Daddy Environments.
*/
console.time('domain-testing')
// OTE
// const goDaddyDomain = 'api.ote-godaddy.com'
// const key = ''
// const secret = ''
<?php
class ValueValidator {
public static function checkEmpty($value) {
return (empty($value)) ? true : false;
}
public static function checkIsset($value) {
return (isset($value)) ? true : false;
}