For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| """ | |
| run with: | |
| gunicorn -w 1 --worker-class gevent web | |
| open in a browser: | |
| localhost:8000/consumer | |
| localhost:8000/consumer | |
| localhost:8000/producer |
| package main | |
| import ( | |
| "bytes" | |
| "exec" | |
| "log" | |
| "os" | |
| ) | |
| // Pipeline strings together the given exec.Cmd commands in a similar fashion |
| #!/bin/bash | |
| OPENSSL_VERSION="1.0.1g" | |
| curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_i386 | |
| tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
| mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
| cd openssl_i386 |
| # encoding: utf-8 | |
| """ | |
| A python logging Handler that use ZeroMQ (ØMQ). | |
| +------+ +------+ +-------+ | |
| | app1 | | app2 | | app X | | |
| +------+ +------+ +-------+ | |
| | PUSH | PUSH | PUSH | |
| | | | |
| # Class for managing multiple servers or anything with start() and stop() methods | |
| class ServerRack(object): | |
| def __init__(self, servers): | |
| self.servers = servers | |
| def start(self): | |
| started = [] | |
| try: |