This file contains hidden or 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
aptitude update | |
aptitude install lxc | |
SUITE=jessie MIRROR=http://ftp.fr.debian.org/debian lxc-create -n n1 -t debian | |
SUITE=jessie MIRROR=http://ftp.fr.debian.org/debian lxc-create -n n2 -t debian | |
SUITE=jessie MIRROR=http://ftp.fr.debian.org/debian lxc-create -n n3 -t debian | |
SUITE=jessie MIRROR=http://ftp.fr.debian.org/debian lxc-create -n n4 -t debian | |
SUITE=jessie MIRROR=http://ftp.fr.debian.org/debian lxc-create -n n5 -t debian | |
cat << EOF > /etc/lxc/dnsmasq.conf |
This file contains hidden or 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
git log --pretty=oneline | awk '{print $1}' | xargs -n 1 git rev-parse --short | python ./namegen.py |
This file contains hidden or 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
def bind(val, f): | |
if val is None: | |
return None | |
else: | |
return f(val) | |
def maybeAdd(x, y): | |
return bind( | |
x, | |
lambda x: bind( |
This file contains hidden or 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
ModuleView.extend({ | |
"@context": { | |
"heroNS": "http://services.gannettdigital.com/vocabs/hero-module#", | |
"xhtml": "http://www.w3.org/1999/xhtml/vocab#", | |
"assetNS": "http://services.gannettdigital.com/vocabs/assets#" | |
"HeroModule": "heroNS:HeroModule", | |
// linked modules | |
"assets": "assetNS:assetModule" | |
"nextButton": "xhtml:next", |
This file contains hidden or 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
LINK_SELECTOR='a[property="http://api.gannettdigital.com/vocab/buildcluster#codeReviewLink"]' | |
When(/^I visit the index page$/) do | |
visit ui_url "/" | |
end | |
Then(/^I see a code review link$/) do | |
page.should have_selector LINK_SELECTOR | |
@gerritLink = find(LINK_SELECTOR) | |
end |
This file contains hidden or 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
from collections import Mapping, Iterator | |
from rdflib import URIRef, Graph, Literal, Namespace | |
import pystache | |
from pystache.context import ContextStack | |
import re | |
RDFS = Namespace(u'http://www.w3.org/1999/02/22-rdf-syntax-ns#') | |
class GraphDict(Mapping, dict): |
This file contains hidden or 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
for node in dev/*/etc/riak.conf; do | |
cat $node \ | |
| sed "s/storage_backend = bitcask/storage_backend = leveldb/" \ | |
| sed "s/riak_control = off/riak_control = on/" \ | |
| sed "s/search = off/search = on/" > ${node}.1 \ | |
mv ${node}.1 ${node}; | |
done |
This file contains hidden or 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
results.txt: | |
arq --query weighted-matrix.rq --data weighted-matrix.ttl --data diagram-software.ttl > results.txt | |
clean: | |
rm results.txt |
This file contains hidden or 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
.venv/ | |
*~ | |
*.pyc |