The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull quay.io/travisci/travis-$lang
.
- Do note that they are large in size, 800MB - 1.8G
Images:
#!/usr/bin/env python | |
import requests | |
import xmltodict | |
import json | |
import os | |
import sys | |
with open('{0}/.getmonitrc'.format(os.path.expanduser('~'))) as f: | |
cf = json.loads(f.read()) |
The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull quay.io/travisci/travis-$lang
.
Images:
#!/usr/bin/env python | |
# Adapted from Mark Mandel's implementation | |
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py | |
import argparse | |
import json | |
import paramiko | |
import subprocess | |
import sys | |
#!/usr/bin/env zsh | |
# in fino veritas | |
# Borrowing shamelessly from these oh-my-zsh themes: | |
# fino-time | |
# pure | |
# https://gist.github.com/smileart/3750104 | |
# Set required options |
FROM ubuntu | |
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list | |
RUN apt-get update -q | |
RUN apt-get install -qy build-essential python-dev python-pip curl | |
#RUN apt-get install -qy autoconf | |
RUN pip install ansible | |
RUN mkdir -p /etc/ansible | |
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf- | |
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts | |
RUN cp /bin/true /bin/hostname |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu-12.04" | |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" | |
# Install Chef version 11 | |
config.vm.provision :shell, :inline => <<EOS | |
set -e | |
if ! command -V chef-solo >/dev/null 2>/dev/null; then | |
curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 11.6.0 | |
fi |
// installed Clojure packages: | |
// | |
// * BracketHighlighter | |
// * lispindent | |
// * SublimeREPL | |
// * sublime-paredit | |
{ | |
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?", | |
"paredit_enabled": true, |
Gatling is an awesome modern load-testing framework written in Scala with asyncronous actors. It's been designed by the folks at Excilys and had been gaining some attention recently.
There a few ways you can get started with Gatling:
Each of these has it's pros and cons, so I have figured yet another way that is meant to be quite easy.
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#!/bin/bash | |
mkdir /tmp/curl-ca-bundle | |
cd /tmp/curl-ca-bundle | |
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2 | |
tar xzf curl-7.22.0.tar.bz2 | |
cd curl-7.22.0/lib/ | |
./mk-ca-bundle.pl | |
if [ ! -d /usr/share/curl/ ]; then | |
sudo mkdir -p /usr/share/curl/ | |
else |