Skip to content

Instantly share code, notes, and snippets.

View fschaper's full-sized avatar

Florian Schaper fschaper

View GitHub Profile
@fschaper
fschaper / haproxy.conf
Created October 16, 2017 21:09 — forked from nateware/haproxy.conf
HAProxy sample config for EC2
#
# This config file is a combination of ideas from:
# http://www.37signals.com/svn/posts/1073-nuts-bolts-haproxy
# http://www.igvita.com/2008/05/13/load-balancing-qos-with-haproxy/
# http://wiki.railsmachine.com/HAProxy
# http://elwoodicious.com/2008/07/15/nginx-haproxy-thin-fastcgi-php5-load-balanced-rails-with-php-support/
# http://upstream-berlin.com/2008/01/09/using-haproxy-with-multiple-backends-aka-content-switching/
# http://wiki.railsmachine.com/HAProxy
# http://gist.github.com/raw/25482/d39fb332edf977602c183194a1cf5e9a0b5264f9
#
@fschaper
fschaper / openssl-self-signed-san-certificate.md
Created October 15, 2017 20:40 — forked from jdeathe/openssl-self-signed-san-certificate.md
How to generate a self-signed SAN SSL/TLS certificate using openssl

How to generate a self-signed SAN SSL/TLS certificate using openssl

Generating a self-signed certificate is a common taks and the command to generate one with openssl is well known and well documented. Generating a certificate that includes subjectAltName is not so straght forward however. The following example demonstrates how to generate a SAN certificate without making a permanent change to the openssl configuration.

Generate a list of all required DNS names, (Note: CN will be discarded).

$ export SAN="DNS:www.domain.localdomain,DNS:domain.localdomain"
@fschaper
fschaper / gist:3ba34fe147b6678e0ad67a380d16e94d
Created August 7, 2016 18:21 — forked from swisspol/gist:c87046f97169c7af0607
Xcode Bot Environment Variables
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.yi2ylKg124/Render
HOME=/var/_xcsbuildd
LOGNAME=_xcsbuildd
PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
PWD=/Library/Developer/XcodeServer/Integrations/Caches/c9e0e876ef9dbb996df76e73d3ac8ad1/Source
SHELL=/bin/false
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CChp5yaB4Q/Listeners
TMPDIR=/var/folders/df/_sxbhzn54s34nb_bvkc68xfc000086/T/
USER=_xcsbuildd