Skip to content

Instantly share code, notes, and snippets.

View hexa2k9's full-sized avatar

Christian Bönning hexa2k9

  • Wegberg, Germany, Europe, Earth, Universe
View GitHub Profile
Diese Fragen über Südafrika wurden auf einer südafrikanischen Tourismuswebseite gestellt und vom Webmaster der Seite beantwortet. Dieser hatte offensichtlich richtig gute Laune und eine ganze Portion Humor!
F: Werde ich in den Straßen Elefanten sehen? (USA)
A: Hängt davon ab, wie viel Alkohol Sie trinken.
F: Ist es sicher, in den Büschen in Südafrika herumzulaufen? (Schweden)
A: Hm - es ist also wahr, was man über die Schweden sagt?!
@hexa2k9
hexa2k9 / gist:2665907
Created May 12, 2012 11:16
nginx cache log
log_format cache '$remote_addr - $host [$time_local] "$request" $status '
'$body_bytes_sent "$http_referer" '
'rt=$request_time ut="$upstream_response_time" '
'uh=$upstream_addr cs=$upstream_cache_status';
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true
@hexa2k9
hexa2k9 / autopgsqlbackup
Created June 22, 2016 21:14 — forked from matthewlehner/autopgsqlbackup
Auto PostgreSQL backup script.
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9