This gist is intended to help me recompile bash on OSX 10.6.
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
[testenv] | |
deps=coverage | |
commands = | |
coverage erase | |
coverage run setup.py test | |
coverage report --omit='.tox/*' | |
coverage html --omit='.tox/*' |
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
# taken from https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python3.rb | |
# and adapted to use 3.3.x instead of 3.4 | |
# Homebrew: https://github.com/Homebrew/homebrew | |
# Homebrew is licensed under BSD 2 Clause: https://github.com/Homebrew/homebrew/blob/master/LICENSE.txt | |
require "formula" | |
class Python33 < Formula | |
homepage "https://www.python.org/" |
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
// Licensed under MIT | |
// author : Damien Nozay | |
// --------------------------------------------------------- | |
// Retroactively add badges to promoted builds. | |
// this assumes | |
// --------------------------------------------------------- | |
import hudson.plugins.promoted_builds.*; | |
import org.jvnet.hudson.plugins.groovypostbuild.*; |
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
// When using the Promoted Build plugin, you may want to perform some operations | |
// then you may also want to add badges or a summary to the target build as | |
// opposed to the promotion build. This script assumes that you have a manual | |
// promotion process with a parameter called RELEASE_VERSION (hence requiring | |
// user input); the content that follows would be what you put as a Groovy | |
// Postbuild action on the promotion process. | |
import org.jvnet.hudson.plugins.groovypostbuild.*; | |
def add_release_version(promotion) { |
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
// Licensed under MIT | |
// author : Damien Nozay | |
// --------------------------------------------------------- | |
// This script goes through all the jobs and checks if they are using the Groovy Postbuild | |
// if they are, then it computes the hash value, and checks against the ones that are approved. | |
// --------------------------------------------------------- | |
import org.jenkinsci.plugins.scriptsecurity.scripts.*; | |
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.*; |
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
/* | |
* grab: move a process from one tty to another. | |
* Version 0.0.1 | |
* | |
* Written by Bernard Blackham. This code is in the public domain. | |
* | |
* This is a very quick hack and quite a mess. Needs a lot of polish. It is | |
* also nowhere near perfect. | |
* | |
* Usage: |
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
#!/bin/bash | |
# fix display for Sceptre 40" X405BV-FHD3 on Fedora 20. | |
# this is done by turning on the underscan feature with xrandr. | |
# usage: call this script from within /etc/gdm/Init/Default. | |
xrandr --output HDMI-1 \ | |
--set "underscan" on \ | |
--set "underscan hborder" 50 \ | |
--set "underscan vborder" 30 |
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
#!/bin/bash | |
# apxs may fail with .../usr/bin/cc: not a directory | |
# solution: use your own apxs script. | |
# fix based on the configure.ac from mod_wsgi | |
# https://github.com/GrahamDumpleton/mod_wsgi | |
XCODE_PREFIX="/Applications/Xcode.app/Contents/Developer/Toolchains/" | |
XCODE_CC="${XCODE_PREFIX}XcodeDefault.xctoolchain/usr/bin/cc" |
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 dec16d764a5bb0a45b16fbb445dce9a8858fc80d Mon Sep 17 00:00:00 2001 | |
From: damien <damien@localhost> | |
Date: Tue, 5 Aug 2014 15:54:14 -0700 | |
Subject: [PATCH] [trivial] massage for centos | |
--- | |
zfs-backup.sh | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/zfs-backup.sh b/zfs-backup.sh |