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
build_python() { | |
if [ -z $1 ]; then | |
printf "use: $FUNCNAME <destination-dir> <python-version>\n | |
For example: $FUNCNAME ~/opt/py 3.4.2\n\n" | |
return 1 | |
fi | |
directory=$1 | |
python_version=$2 | |
cwd="`pwd`" |
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/sh -vex | |
printf "%s\n" "Make sure python is compiled with --enable-shared!!!" | |
rm -rf vim | |
git clone https://github.com/vim/vim.git | |
cd vim | |
export PATH=$HOME/opt/pylocal/bin:$PATH | |
CPPFLAGS="-I$HOME/opt/pylocal/include" |
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
# Use: python files_from_ssl_bag.py <path-to-data-bag-ssl-in-chef> | |
import os | |
import json | |
import argparse | |
import tempfile | |
def main(args=None): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('data_bag_path', help='data bag path') |
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 sys | |
import json | |
import argparse | |
def main(args_list=None): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--cert-path', help='cert path') | |
parser.add_argument('--intermediate-path', help='inter path') | |
parser.add_argument('--key-path', help='key path') |
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
sudo yum -y install lxc curl zc-utils go git mercurial | |
export GOPATH=/opt/go | |
export PATH=$GOPATH/bin:$PATH | |
mkdir -p $GOPATH/src/github.com/dotcloud | |
cd $GOPATH/src/github.com/dotcloud | |
git clone https://github.com/dotcloud/docker.git | |
cd docker |
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/sh -vex | |
# needed rpms | |
yum -y install ncurses-devel git gcc rpmbuild | |
TEMPDIR="$(mktemp -d)" | |
HERE="$(pwd)" | |
printf "building at: %s\n" $TERMDIR | |
cd $TEMPDIR |
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
ZOO_LOG4J_PROP="INFO,ROLLINGFILE" | |
ZOO_LOG_DIR="/var/log/zookeeper/" |
NewerOlder