Skip to content

Instantly share code, notes, and snippets.

@yatskevich
yatskevich / proxy-http-version.conf
Created January 12, 2015 15:32
proxy_http_version set to 1.1
server {
listen 80 default;
server_name your_server.org;
location / {
proxy_http_version 1.1; # this is essential for chunked responses to work
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ShawnMilo
ShawnMilo / validate_uuid4.py
Created December 3, 2013 20:55
Validating a uuid4 with Python.
from uuid import UUID
def validate_uuid4(uuid_string):
"""
Validate that a UUID string is in
fact a valid uuid4.
Happily, the uuid module does the actual
checking for us.