Skip to content

Instantly share code, notes, and snippets.

@BrodyCai
BrodyCai / gmp6_and_pycrypto2.6
Created September 10, 2014 09:47
FIx "_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)"
## OS: CentOS 6.2
## Python: 2.6.6
wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.xz
tar -xJf gmp-6.0.0a.tar.xz
cd gmp-6.0.0
make & make check & make install
wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar -xzf ./pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1
./configure --includedir=/usr/local/include/
@BrodyCai
BrodyCai / fabric demo
Created March 20, 2014 09:33
Fabric demo for deploying java web application
#coding=utf-8
__author__ = 'brody'
"""
auto deploying java web application
command examples:
fab deploy_live
fab rollback_beta
run 'fab -l' for more
"""