Skip to content

Instantly share code, notes, and snippets.

View i386's full-sized avatar

James William Dumay i386

View GitHub Profile
@i386
i386 / gist:70641
Created February 26, 2009 03:50 — forked from DylanFM/gist:70625
//Excuse me while I get all enterprise in here...
class JamesInjectorBean {
//Obviously I wont be charging for this
}
Java 6 on Mac OS X 10.5 Leopard
===============================
Apparently Java 6 (that is, 1.6) has been available on Mac OS X for
quite some time (ie. almost a year.) I was entirely unaware of this;
I'm probably not the only one. To enable Java 6, simply run
`/Applications/Utilities/Java Preferences.app`, and drag the available
JVMs into the order you prefer.
This will swap the default 'java', 'javac' etc to point to your first
@i386
i386 / gist:979935
Created May 19, 2011 00:49
Bamboo Task in Javascript
var processService = require_component('processService'); //This is how you get Spring components
var task = {
execute: function(context) {
var logger = context.buildLogger;
logger.addLogEntry("Hello World!");
return {
taskState: "successful",
resultData: {},
taskIdentifier: context;
@i386
i386 / bamboo_broker.py
Created November 28, 2011 22:51
Bitbucket Broker for Triggering Bamboo Jobs
#!/usr/bin/env python
#
# Copyright 2011 Calico Cube Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
private void initialiseTaskExecutables(final Plugin plugin, final Element element)
{
@SuppressWarnings({"unchecked"})
final List<Element> executableElements = element.elements("executable");
if (executableElements != null && !executableElements.isEmpty())
{
final Element executableElement = Iterables.getFirst(executableElements, null);
if (executableElement != null)
@i386
i386 / gstreamer 0.10.36 fails to install 10.8 and Xcode 4.4 GM
Created July 20, 2012 23:33
gstreamer 0.10.36 fails to install 10.8 and Xcode 4.4 GM
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GStreamer configure 0.10.36, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/Users/jdumay/software/homebrew/Cellar/gstreamer/0.10.36 --disable-debug --disable-dependency-tracking --enable-introspection=no
## --------- ##
@i386
i386 / brew install -v gstreamer
Created July 20, 2012 23:37
brew install -v gstreamer
==> Downloading http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.36.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gstreamer-0.10.36.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/gstreamer-0.10.36.tar.bz2
==> ./configure --prefix=/Users/jdumay/software/homebrew/Cellar/gstreamer/0.10.36 --disable-debug --disable-dependency-tracking --enable-introspection=no
./configure --prefix=/Users/jdumay/software/homebrew/Cellar/gstreamer/0.10.36 --disable-debug --disable-dependency-tracking --enable-introspection=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
@i386
i386 / brew --config
Created July 20, 2012 23:38
brew --config
north:src jdumay$ brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: 0dc47019699f595e8437143a9b82914a9ae53cee
HOMEBREW_PREFIX: /Users/jdumay/software/homebrew
HOMEBREW_CELLAR: /Users/jdumay/software/homebrew/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8-x86_64
Xcode: 4.4 => /Applications/Xcode44-DP7.app/Contents/Developer
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
@i386
i386 / brew doctor
Created July 20, 2012 23:39
brew doctor
north:src jdumay$ brew doctor
Error: The following libiconv files were detected in /Users/jdumay/software/homebrew:
include/iconv.h
Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr/lib.
If you have an alternate libiconv, many formulae will fail to compile or
link, especially if it wasn't compiled with the proper architectures.
Error: You have unlinked kegs in your Cellar
@i386
i386 / gist:3154134
Created July 21, 2012 01:17
gstreamer patch
diff --git a/configure b/configure
index 0af896d..20e6576 100755
--- a/configure
+++ b/configure
@@ -21304,7 +21304,7 @@ fi
fi
flex_min_version=2.5.31
- flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
+ flex_version=`$FLEX_PATH --version | head -n 1 | awk '{print $2'}`