- Some must-have scripts
/script install buffers.pl beep.pl urlserver.py highmon.pl
use std::comm::Sender; | |
use std::io::net::tcp::TcpStream; | |
use std::io::{Listener, Acceptor}; | |
use std::io::net::tcp::TcpListener; | |
use std::io::timer; | |
use std::time::duration::Duration; | |
// A sketch of the architecture for an IRC BNC that supports multiple client connections. | |
// I am curious if this is the optimal way to architect this kind of program. |
CREATE TABLE document_store (key CHAR(100) PRIMARY KEY, bucket CHAR(100), value JSON); |
[ZeroVM talk proposals to OpenStack Summit Paris 2014](https://www.openstack.org/vote-paris/SearchForm?Search=ZeroVM) | |
[2014-08-05] "ZeroVM Architecture and ZVM Runtime (ZRT)" by Ryan McKinney at University of Texas San Antonio Cloud & Big Data Laboratory | |
[slides (work in progress)](http://www.slideshare.net/sgt_mac/zero-vm-architecture) | |
[2014-08-01] "Changing the world with ZeroVM and Swift" Jakub Krajcovic at PyConAU OpenStack Miniconf |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
""" | |
SQLAlchemy, PostgreSQL (psycopg2), and autocommit | |
See blog post: http://oddbird.net/2014/06/14/sqlalchemy-postgres-autocommit/ | |
""" | |
from contextlib import contextmanager | |
from sqlalchemy import create_engine, event | |
from sqlalchemy.orm import sessionmaker, Session as BaseSession |
from flask import Flask | |
def configure_uwsgi(app): | |
# Setup debugging, logging for uwsgi. | |
try: | |
import uwsgi | |
except ImportError: | |
return | |
from time import strftime |
This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
import os | |
import pytest | |
from alembic.command import upgrade | |
from alembic.config import Config | |
from project.factory import create_app | |
from project.database import db as _db | |
ssl_certificate cert.pem; | |
ssl_certificate_key cert.key.pem; | |
ssl_trusted_certificate cert.ca.pem; | |
ssl_dhparam cert.dh.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; |