Skip to content

Instantly share code, notes, and snippets.

@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active June 30, 2024 05:39
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@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
@plentz
plentz / nginx.conf
Last active July 2, 2024 13:20
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
@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