sudo yum install -y \
gcc \
make \
ncurses-devel \
lua \
lua-devel \
ruby \
| # tested on osx 10.10.1 (14B25) | |
| mkdir ~/tmp | |
| hg clone https://code.google.com/p/vim/ ~/tmp/vim | |
| cd ~/tmp/vim | |
| ./configure \ | |
| --prefix=$HOME/.local \ | |
| --enable-fail-if-missing \ | |
| --with-features=huge \ | |
| --enable-multibyte \ | 
| ```python | |
| from artifactory import ArtifactoryPath | |
| path = ArtifactoryPath( | |
| "http://repo.jfrog.org/artifactory/distributions/org/") | |
| for p in path.glob("**/*.gz"): | |
| print p | |
| ``` | 
| art_url="https://artifactory.company.com/artifactory" | |
| user="user" | |
| pass="password" | |
| function upload { | |
| local_file_path=$1 | |
| target_folder=$2 | |
| if [ ! -f "$local_file_path" ]; then | 
| for X in `cat hosts.txt` | |
| do | |
| sshpass -p 'PASSWORD' ssh-copy-id -i ~/.ssh/id_rsa USER@${X} | |
| done | 
| # Install requirements | |
| VERSION=2.6.9 | |
| VERSION_SHORT=2.6 | |
| mkdir /tmp/python-install | |
| cd /tmp/python-install | |
| wget https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tar.xz | |
| tar xf Python-${VERSION}.tar.xz | |
| cd Python-${VERSION} | |
| ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" | |
| sudo make && sudo make altinstall |