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
import subprocess | |
import select | |
from threading import Thread | |
from cStringIO import StringIO | |
def read_stream(stream, output_stream, log_func): | |
while True: | |
r, w, x = select.select([stream.fileno()], [], [], 1.0) | |
if not r: |
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
#!/usr/bin/env python | |
""" | |
Modifiy from urllib3 benchmark | |
https://raw.github.com/shazow/urllib3/master/test/benchmark.py | |
Really simple rudimentary benchmark to compare ConnectionPool versus standard | |
urllib to demonstrate the usefulness of connection re-using. | |
""" | |
from __future__ import print_function |
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
import select | |
import subprocess | |
from threading import Thread | |
from cStringIO import StringIO | |
import logging | |
logger = logging.getLogger(__name__) | |
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 collections import defaultdict | |
class _MissingDictionary(defaultdict): | |
def __missing__(self, key): | |
return defaultdict(_MissingDictionary) | |
configs = defaultdict(_MissingDictionary) |
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
$ tar zxvf openssl-1.0.0e.tar.gz | |
$ cd openssl-1.0.0e/ | |
$ ./Configure --prefix=/usr/i586-mingw32msvc mingw | |
$ sed -i "s/crypto ssl engines apps test tools/crypto ssl engines/" Makefile | |
$ make CC=i586-mingw32msvc-gcc RANLIB=i586-mingw32msvc-ranlib | |
$ sudo make install | |
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
===> Building for node-devel-0.3.2 | |
Waf: Entering directory `/usr/ports/www/node-devel/work/node-v0.3.2/build' | |
[51/73] libv8.a: deps/v8/SConstruct -> build/default/libv8.a | |
/usr/local/bin/python2.7 "/usr/ports/www/node-devel/work/node-v0.3.2/tools/scons/scons.py" -j 1 -C "/usr/ports/www/node-devel/work/node-v0.3.2/build/default/" -Y "/usr/ports/www/node-devel/work/node-v0.3.2/deps/v8" visibility=default mode=release arch=x64 library=static snapshot=on | |
scons: Reading SConscript files ... | |
scons: warning: Ignoring missing SConscript 'obj/test/release/SConscript' | |
File "/usr/ports/www/node-devel/work/node-v0.3.2/deps/v8/SConstruct", line 1102, in BuildSpecific | |
scons: done reading SConscript files. | |
scons: Building targets ... |
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
===> License check disabled, port has not defined LICENSE | |
=> node-v0.3.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. | |
=> Attempting to fetch from ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/. | |
fetch: ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/node-v0.3.2.tar.gz: File unavailable (e.g., file not found, no access) | |
=> Attempting to fetch from ftp://ftp5.tw.freebsd.org/pub/FreeBSD/ports/distfiles/. | |
fetch: ftp://ftp5.tw.freebsd.org/pub/FreeBSD/ports/distfiles/node-v0.3.2.tar.gz: File unavailable (e.g., file not found, no access) | |
=> Attempting to fetch from http://nodejs.org/dist/. | |
node-v0.3.2.tar.gz 4329 kB 823 kBps | |
===> Extracting for node-devel-0.3.2 | |
=> SHA256 Checksum OK for node-v0.3.2.tar.gz. |