Skip to content

Instantly share code, notes, and snippets.

View macbookandrew's full-sized avatar

Andrew Minion macbookandrew

View GitHub Profile
# Generate Private Key
openssl genrsa -out server.key 4096
# Generate CSR
openssl req -new -out server.csr -key server.key -config openssl.cnf
# => Fill in info
# Check CSR
openssl req -text -noout -in server.csr
# Sign Cert
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
@macbookandrew
macbookandrew / deploy.sh
Last active August 29, 2015 14:07 — forked from kloon/deploy.sh
WordPress Plugin deploy script - fixes for hard drives with a space in the name
#! /bin/bash
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.
# main config
PLUGINSLUG="plugin-slug"
CURRENTDIR=`pwd`
MAINFILE="main-file.php" # this should be the name of your main php file in the wordpress plugin
# git config