Skip to content

Instantly share code, notes, and snippets.

@jgamblin
jgamblin / digicert.sh
Created April 3, 2017 22:18
Request, Approve and Download Digicert TLS Cert
#!/bin/bash
#Required
apikey=*YourAPIKey*
domain=*YourOrgDomain*
commonname=$(hostname --fqdn)
orgid=*YourOrgID*
#OV or EV or Private
cert_type=ov
@JeffreyWay
JeffreyWay / set-value.md
Created July 28, 2012 19:09
PHP: Set value if not exist

You know how, in JavaScript, we can set a value to a variable if one doesn't, like this:

name = name || 'joe';

This is quite common and very helpful. Another option is to do:

name || (name = 'joe');