Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Ivan Petukhov satels

🌴
On vacation
View GitHub Profile
@FND
FND / README.md
Last active May 4, 2021
Falcon WSGI application with asyncio
View README.md

Getting Started

$ pip install falcon
$ python3 app.py

alternatively with Gunicorn (for HTTP/1.1):

$ pip install gunicorn

$ gunicorn app:app

@sebasmagri
sebasmagri / falcon_gevent_streaming.py
Created Nov 10, 2014
Concurrently streaming response using Falcon and Gevent
View falcon_gevent_streaming.py
# Fire this using gunicorn falcon_gevent_streaming
# and head to 127.0.0.1:8000 in a browser.
# Requirements:
# pip install falcon gevent
import falcon
import gevent
from gevent.queue import Queue
@celldee
celldee / gist:4241084
Created Dec 8, 2012
Example RabbitMQ configuration file - rabbitmq.config
View gist:4241084
# /etc/rabbitmq/rabbitmq.config
#
# Follow the instructions on RabbitMQ website to create certificate authority and certificates -
#
# http://www.rabbitmq.com/ssl.html
#
[
{rabbit, [
{tcp_listeners,[{"127.0.0.1",5672}]},
@NetAngels
NetAngels / runner.py
Created Jun 24, 2011
Extremely fast Django test runner
View runner.py
# -*- coding: utf-8 -*-
"""
Extremely fast Django test runner, based on the idea that your database schema
and fixtures are changed much more seldom that your code and tests. All you
need is to make sure that your "quickstart.sqlite" database file is always up
to date.
BEWARE: Don't run this test runner on production server. It assumes that you
use only one database configured as "default", and its db engine is SQLite.
Otherwise your tests can eat your data!