Please don't use this. It's old and didn't really even work in the first place. Just keeping it around for historical value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile nginx standalone without root access | |
mkdir ~/installed | |
mkdir ~/installed/nginx | |
mkdir ~/src | |
cd ~/src | |
# PCRE dependency - we'll compile against this statically | |
wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz | |
tar -xzvf pcre-7.8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..:77I777777777777777777777I. . | |
..?77777777777777777777777777777$+.. | |
. ~7777777I7777777777777777777777777$~.. | |
.7I7777...7777777777777777777777777$7+. | |
.?7777.. ..77777777777777777777777$$7. | |
.77777 777777777777777777777$$$$$I | |
.77777.. ...7777777777777777777$$$$$$$$ | |
.7777777 .77$777777777777777777$$$$$$$$ | |
.77777777777777777777777777777$$$$$$$$$$ | |
.77777777777777777777777777$$$$$$$$$$$$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tornado.httpclient import HTTPRequest, AsyncHTTPClient | |
import tornado.ioloop | |
import tornado.web | |
from tornado import gen | |
GB = 1024 * 1024 * 1024 | |
total_downloaded = 0 | |
def streaming_callback(chunk): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.options | |
import tornado.web | |
import tornado.httpclient | |
import tornado.gen | |
from tornado.concurrent import run_on_executor | |
from concurrent.futures import ThreadPoolExecutor |