Skip to content

Instantly share code, notes, and snippets.

@dustin
dustin / flume.py
Created July 27, 2010 21:05
tap -> flume
#!/usr/bin/env python
#
# tap -> flume
#
# requires: python thrift bindings + compiled flume thrift binding.
#
import sys
import time
import struct
@plentz
plentz / nginx.conf
Last active November 16, 2024 14:10
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@stickytruth
stickytruth / example.py
Last active October 17, 2019 05:08
kernprof and flask
"""
Flask's reloader causes kernprof to fail.
Without the reloader it appears to work.
"""
from flask import Flask, request
import time
app = Flask(__name__)
app.testing = True
@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active November 13, 2024 13:40
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.