Skip to content

Instantly share code, notes, and snippets.

View bobbravo2's full-sized avatar
🏠
Working from home

Bob Gregor bobbravo2

🏠
Working from home
  • Boston, MA
  • 12:15 (UTC -04:00)
View GitHub Profile
#!/bin/bash
# @Link to the teams docs / confluence / etc.
main() {
if [[ $1 == "-h" ]]; then
print_usage
exit 0
fi
OS=$1
docker_authenticate
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=<device-width>, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
// Stops people putting in Invalid nameservers
var nameserver = /^((([a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?\.)+[a-z]{2,6})|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))$/i;
$('#configure_domains_form').submit(function() {
if (validNameserver($('input[name="domainns1"]')) && validNameserver($('input[name="domainns2"]')) && validNameserver($('input[name="domainns3"]')) &&
validNameserver($('input[name="domainns4"]'))){
return true;
}else{
return false;
}
});