Skip to content

Instantly share code, notes, and snippets.

@meineerde
meineerde / nginx.conf
Created March 13, 2013 10:11
Check the Accept-Language Header to emulate part of Apache's content negotiation features. This is based on http://stackoverflow.com/questions/3657614/how-to-rewrite-location-in-nginx-depending-on-the-client-browsers-language
map $http_accept_language $lang {
default en;
~de de;
~en en;
}
location /foo/bar/baz/lang.js {
try_files $uri.$lang $uri;
}
@yeah
yeah / gist:3551456
Created August 31, 2012 11:00
Find a particular Car2Go
curl "http://www.car2go.com/portal/berlin/page/mybookings/mapEnlarged.faces" | grep -o 'B-GO2129"}[^}]\+}'
@tinnefeld
tinnefeld / gist:2324599
Created April 7, 2012 02:32
Deichkind - Leider Geil / Unfortunately Awesome - Englisch lyrics / Englischer Songtext
I'm sorry, but I have to admit, there are things in this world, which are - unfortunately awesome.
Cars cause pollution, the environment suffers, but a fancy new ride is - unfortunately awesome.
I'm chewing on a crayon, mom tells me to 'Stop it!', but it relaxes me - unfortunately awesome.
Diagnosis: psychosis!, I don't care, a joint first thing in the morning - unfortunately awesome.
"Stop nuclear energy!" you hear them screaming and I charge my smartphone - unfortunately awesome.
Finally a new job, gotta' get up early in the morning, getting wasted in a pub - unfortunately awesome.
My teeth are rotten, but they don't hurt yet, I'm not going to the dentist - unfortunately awesome.
I'm decorating drunken friends, it's mean indeed, - but unfortunately awesome.
Bad for the offspring, bad for the North-sea, bad for your head - but unfortunately awesome.