Skip to content

Instantly share code, notes, and snippets.

@rtluckie
rtluckie / osx
Last active August 29, 2015 14:10
VIM - Build from source
# 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 \
@rtluckie
rtluckie / test
Last active August 29, 2015 14:06
```python
from artifactory import ArtifactoryPath
path = ArtifactoryPath(
"http://repo.jfrog.org/artifactory/distributions/org/")
for p in path.glob("**/*.gz"):
print p
```
@rtluckie
rtluckie / deploy.sh
Created July 10, 2014 20:50
deploy artifact to artifactory
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
@rtluckie
rtluckie / ssh-copy-id-bulk.sh
Created June 5, 2014 05:38
bulk copy ssh keys
for X in `cat hosts.txt`
do
sshpass -p 'PASSWORD' ssh-copy-id -i ~/.ssh/id_rsa USER@${X}
done
@rtluckie
rtluckie / Python2.6.9
Last active August 29, 2015 14:02
Install Python CentOS, Fedora
# 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
@rtluckie
rtluckie / vim_build.md
Last active August 29, 2015 14:01
vim_build

Install vim with all options I have ever needed.

sudo yum install -y \
gcc \
make \
ncurses-devel \
lua \
lua-devel \

ruby \