Skip to content

Instantly share code, notes, and snippets.

@kumarnitin
kumarnitin / gist:5695669
Last active December 18, 2015 00:19
redis-live.config with multiple redis servers being tracked
{
"RedisServers":
[
{
"server": "127.0.0.1",
"port" : 6379
},
{
"server": "127.0.0.2",
"port" : 6379
@kumarnitin
kumarnitin / tornado-static-file.py
Created July 4, 2012 23:49 — forked from didip/tornado-static-file.py
Tornado StaticFileHandler
class StaticFileHandler(RequestHandler):
"""A simple handler that can serve static content from a directory.
To map a path to this handler for a static data directory /var/www,
you would add a line to your application like:
application = web.Application([
(r"/static/(.*)", web.StaticFileHandler, {"path": "/var/www"}),
])