Given a gem with a specific version in recipe.rb:
If building "head" or "devel"
- Ignore the $version specified in recipe.rb
- Fetch and install the latest gem and deps using the "omnibus" ruby
- Derive the $version
recipies/ | |
puppet | |
ruby-2.1 | |
puppet-plugins | |
All these are buildable standalone- | |
But, if the puppet recipie supports omnibus-builds (extra attributes in recipe.rb), I want to be able to do both |
#!/usr/bin/env python | |
""" | |
Generates random articles containing loremipsum to | |
test Pelican site generation. | |
Requires the loremipsum Python module: | |
pip install loremipsum | |
Locate the section for your github remote in the .git/config
file. It looks like this:
Now add this lines:
[remote "github"]
url = git@github.com:joyent/node.git
fetch = +refs/pull/*/head:refs/remotes/github/pr/*
[alias] | |
pr = "!f() { git fetch -fu origin refs/pull/$1/head:pr/$1; } ; f" | |
prr = "!f() { git fetch -fu $1 refs/pull/$2/head:pr/$2; } ; f" | |
pru = "!f() { git fetch -fu upstream refs/pull/$1/head:pr/$1; } ; f" | |
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" |
Projects root | |
https://url/path/to/root | |
Variables: | |
operatingsystem=redhat,centos,fedora,ubuntu,debian,darwin | |
version=majorosrelease, e.g 6 or 7 for centos, 14.04 for ubuntu | |
arch=output of uname -s, typically x86_64 | |
# <project>/versions.txt | |
# tag version |
#!/bin/sh | |
# Print four lines showing blocks of colors: 0-7 | 0-7bold | 8-15 | 8-15bold | |
perl -CADS -lwe ' | |
my $block = shift || (chr(0x2588) x 3); | |
for (["", 0], ["1;", 0], ["", 8], ["1;", 8]) { | |
my ($bold, $offset) = @$_; | |
my @range = map $offset + $_, 0..7; | |
printf "%s %-6s ", $bold ? "bold" : "norm", "$range[0]-$range[-1]"; | |
print map("\e[${bold}38;5;${_}m$block", @range), "\e[0m" | |
} |
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" |
https://googledrive.com/host/0B6dgb1NG97heZDBnRzlVWWRKOE0 | |
https://googledrive.com/host/0B6dgb1NG97heZDBnRzlVWWRKOE0/virtualbox | |
https://googledrive.com/host/0B6dgb1NG97heZDBnRzlVWWRKOE0/virtualbox/debian-7.5-amd64.box |