Skip to content

Instantly share code, notes, and snippets.

View shrikeh's full-sized avatar

Barney Hanlon shrikeh

View GitHub Profile
@louismullie
louismullie / Fibonacci-ArnoldC
Last active November 1, 2016 12:12
Iterative Fibonacci in Arnold C (https://github.com/lhartikk/ArnoldC)
LISTEN TO ME VERY CAREFULLY FIBONACCI
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE n
HEY CHRISTMAS TREE x, y, i
YOU SET US UP x 0
YOU SET US UP y 1
YOU SET US UP i 0
BECAUSE I'M GOING TO SAY PLEASE LET OFF SOME STEAM BENNETT x 1
@ilguzin
ilguzin / nginx_redirect_2named_location
Created November 6, 2013 07:03
NGINX: Redirect from current location into named location
# Use only codes greater than 418, do not use common status codes 404, 402, 403, etc
location /js {
error_page 418 = @backend; return 418;
}
location /data {
error_page 418 = @backend; return 418;
}
@perusio
perusio / gist:5017911
Last active December 14, 2015 02:59 — forked from shrikeh/csrf-lua.conf
server {
listen 80;
root /root/to/your/docroot;
proxy_redirect off;
proxy_intercept_errors on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;