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

Keybase proof

I hereby claim:

  • I am fschaper on github.
  • I am fschaper (https://keybase.io/fschaper) on keybase.
  • I have a public key whose fingerprint is EBBB 6FA4 0C6F E50F 9398 4B40 BAD5 96B7 F538 B899

To claim this, I am signing this object:

[alias]
show-rev-number = !sh -c 'git rev-list --reverse HEAD | nl | awk \"{ if(\\$1 == "$0") { print \\$2 }}\"'
ds = diff --staged
st = status -sb
amend = commit --amend -C HEAD
undo = reset --soft HEAD^
ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short
daily = log --since '1 day ago' --oneline --author florian.schaper@hmmh.de
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
@fschaper
fschaper / .bash_profile
Last active August 29, 2015 14:01
bash_profile configuration for os x
# OSX: cd's to frontmost window of Finder
# eg; change finder directory
cdf() {
currFolderPath=$( /usr/bin/osascript <<EOT
tell application "Finder"
try
set currFolder to (folder of the front window as alias)
on error
set currFolder to (path to desktop folder as alias)
end try