sudo yum install -y \
gcc \
make \
ncurses-devel \
lua \
lua-devel \
ruby \
# 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 |
for X in `cat hosts.txt` | |
do | |
sshpass -p 'PASSWORD' ssh-copy-id -i ~/.ssh/id_rsa USER@${X} | |
done |
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 |
```python | |
from artifactory import ArtifactoryPath | |
path = ArtifactoryPath( | |
"http://repo.jfrog.org/artifactory/distributions/org/") | |
for p in path.glob("**/*.gz"): | |
print p | |
``` |
# 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 \ |
BASE_DIR="audiocheck.net" | |
mkdir ${BASE_DIR} && cd ${BASE_DIR} && \ | |
for PAGE in $(curl http://www.audiocheck.net/soundtestsaudiotesttones_index.php | grep .php | sed 's|.*a href="\.\/\(.*.php\).*|\1|g' | grep php$); do | |
DIRNAME=$(echo ${PAGE} | sed 's|[a-z0-9]*_\(.*\)\.php|\1|g') | |
echo "Downloading ${DIRNAME}" | |
mkdir $(pwd)/${DIRNAME} | |
for FILE in $(curl http://www.audiocheck.net/${PAGE} | grep download.php | sed 's|.*<A HREF="download.php?filename=\([^\"]*\).*|\1|g'); do | |
FILE_NAME=$(echo $FILE | sed 's|Audio/audiocheck.net_\(.*\)|\1|g') | |
DOWNLOAD_TARGET="http://www.audiocheck.net/download.php?filename=${FILE}" | |
DOWNLOAD_PATH=$(pwd)/${DIRNAME}/${FILE_NAME} |
import json | |
import requests | |
import logging as log | |
perms = [ | |
{ | |
"matcher": { | |
"id": "refs/heads/**", | |
"displayId": "refs/heads/**", | |
"type": { |
#!/usr/bin/env python | |
import sys | |
import os | |
import subprocess | |
import logging | |
import re | |
import getpass | |
logging.basicConfig(level=logging.DEBUG, format="%(levelname)s: %(message)s\n") |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: sw=4:ts=4:expandtab | |
""" | |
Initial attempt to check installed deps vs deps listed in requirements. | |
""" | |
from __future__ import absolute_import | |
from __future__ import division |