Skip to content

Instantly share code, notes, and snippets.

View dbishop's full-sized avatar

Darrell Bishop dbishop

View GitHub Profile
@dbishop
dbishop / README
Last active April 8, 2019 22:06
Jenkins Systemd party time
You put the service file in `/lib/systemd/system/`
On each server, for each slave name, create a file named
/var/lib/jenkins/SLAVENAME.env
and edit it to have right SLAVE and SECRET values.
Then make one symlink like this for each slave name (e.g. "light-jobs" or "medium-jobs" or "tasks":
ln -s /lib/systemd/system/jenkins-slave@.service /etc/systemd/system/multi-user.target.wants/jenkins-slave@THENAME.service
e.g.
@dbishop
dbishop / README.md
Created February 11, 2014 21:56 — forked from isa/README.md

RHEL 6.3 veewee templates for vagrant use

These templates can be used to feed to veewee to spin up an el6 basebox for use with vagrant.

There are some coded values in definition.rb and ks.cfg which point at Yale-ishness. Amend to point at local RHEL iso/yum repo.

Built successfully with veewee 0.2.3, vagrant 1.0.3, Virtualbox 4.1.18.

Config Management

@dbishop
dbishop / NewFunctionalTest.diff
Created September 9, 2012 01:22
This patch to webob.byterange fixes "Range: bytes=-17" for Content-Length < 17 (eg. 10 in my tests).
diff --git a/test/functional/tests.py b/test/functional/tests.py
index dd589e6..cd734ac 100644
--- a/test/functional/tests.py
+++ b/test/functional/tests.py
@@ -1147,6 +1147,13 @@ class TestFile(Base):
hdrs = {'Range': '0-4'}
self.assert_(file.read(hdrs=hdrs) == data, range_string)
+ # "If the entity is shorter than the specified suffix-length, the
+ # entire entity-body is used."