Skip to content

Instantly share code, notes, and snippets.

View fmariluis's full-sized avatar

Franco Mariluis fmariluis

View GitHub Profile
server {
listen 80;
server_name %(name)s %(aliases)s;
client_max_body_size 4G;
keepalive_timeout 5;
gzip on;
gzip_static on;
gzip_min_length 1000;
gzip_types text/css text/plain text/javascript application/x-javascript application/x-json;
@rogerallen
rogerallen / us_state_abbrev.py
Last active March 18, 2025 20:33
A Python Dictionary to translate US States to Two letter codes
# United States of America Python Dictionary to translate States,
# Districts & Territories to Two-Letter codes and vice versa.
#
# Canonical URL: https://gist.github.com/rogerallen/1583593
#
# Dedicated to the public domain. To the extent possible under law,
# Roger Allen has waived all copyright and related or neighboring
# rights to this code. Data originally from Wikipedia at the url:
# https://en.wikipedia.org/wiki/ISO_3166-2:US
#
@gorsuch
gorsuch / gist:1418850
Created December 1, 2011 18:37
clojure uuid
(defn uuid [] (str (java.util.UUID/randomUUID)))
@fwielstra
fwielstra / api.js
Created June 14, 2011 14:46
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');