Skip to content

Instantly share code, notes, and snippets.

View shaunthomas999's full-sized avatar

Shaun Thomas shaunthomas999

View GitHub Profile
@shaunthomas999
shaunthomas999 / gencert.sh
Last active March 29, 2016 13:13 — forked from bradland/gencert.sh
Generate a self-signed SSL cert. This script has to be used with openssl that comes with Nginx installation. Note: Run the script with `sudo`.
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class