Skip to content

Instantly share code, notes, and snippets.

View dotcore's full-sized avatar
💭
🔥 ¯\_(ツ)_/¯

David Bauer dotcore

💭
🔥 ¯\_(ツ)_/¯
View GitHub Profile
@dotcore
dotcore / post-checkout
Created October 31, 2014 13:24
appsuite post-checkout hook
#!/bin/sh
BRANCH_SWITCH=$3
RESET=n
if [ $BRANCH_SWITCH == "1" ]; then
exec < /dev/tty
while true; do
read -p "Reset Appsuite UI? (y/n) " yn
if [ "$yn" = "" ]; then
yn='y'
fi
@dotcore
dotcore / pre-push
Created October 31, 2014 13:35
appsuite pre-push hook
#!/bin/sh
REV=`git rev-parse --verify HEAD`
BRANCH=`git rev-parse --symbolic --abbrev-ref HEAD`
SUBJECT=`git log -n 1 --pretty=format:"%s"`
BODY=`git log -n 1 --pretty=format:"%b"`
VERSION=`grep version ui/package.json | awk -F'"' '{print $4}'`
TEMPLATE="Title: ${SUBJECT}\nRoot cause:\nSolution: ${BODY}\nResolved state: Fix\nVersion: ${VERSION}\nGit commit: ${REV}\nGit repository: wd/frontend/web\nGit branch: ${BRANCH}\nPackage name: open-xchange-appsuite\n"
echo ${TEMPLATE} | pbcopy
echo ${TEMPLATE}

Keybase proof

I hereby claim:

  • I am dotcore on github.
  • I am bauer (https://keybase.io/bauer) on keybase.
  • I have a public key whose fingerprint is F5C0 5868 714E 8A3A 35B4 6EBA 4A7B 2613 8F47 1C1A

To claim this, I am signing this object:

@dotcore
dotcore / nginx.conf
Last active April 16, 2016 10:24
Secure NGINX Configuration
worker_processes auto;
events {
use epoll;
worker_connections 1024;
multi_accept on;
}
http {
client_body_buffer_size 8K;