Skip to content

Instantly share code, notes, and snippets.

{
"capabilitycontainer":{
"broker":"${broker_ip_address}",
"bootscript":"res/scripts/newcc.py",
"sysname":"${exchange_scope}",
"broker_heartbeat":"5",
"pip_package_repo":"http://ooici.net/packages",
"git_lcaarch_repo":"${git_lcaarch_repo}",
"git_lcaarch_branch":"${git_lcaarch_branch}",
"git_lcaarch_commit":"${git_lcaarch_commit}",
{
"exchange_scope":"some_unique_string",
"broker_ip_address":"ec2-50-16-78-75.compute-1.amazonaws.com",
"epuworker_image_id":"ami-9ac923f3",
"pip_package_repo":"http://ooici.net/packages",
"git_lcaarch_repo":"http://github.com/nimbusproject/lcaarch.git",
"git_lcaarch_branch":"uniques",
"git_lcaarch_commit":"HEAD",
"git_txrabbitmq_repo":"http://github.com/nimbusproject/txrabbitmq.git",
"git_txrabbitmq_branch":"master",
node[:services].each do |service, service_spec|
service_config = "/home/#{node[:username]}/lcaarch/res/config/#{service}-ionservices.cfg"
template "#{service_config}" do
source "ionservices.cfg.erb"
owner "#{node[:username]}"
variables(:service_spec => service_spec)
end
# Well known names, launch plan author needs to coordinate with these constants
from bootstrap.names import *
# This is called by the outer program, well known signature
def run_plan(confs, services, launcher, tester):
"""
@param confs Bag of anything the operator configures or overrides
@param services Service configurations from launch plan
@param launcher Will launch a service/node/epu
[plan]
run_plan: launch_plan.py
[runlevels]
level1: level1/level.conf
level2: level2/level.conf
level3: level3/level.conf
level4: level4/level.conf
[svc-rabbit]
@timf
timf / cmds.sh
Created November 18, 2010 03:47
Cleaning up a bit
rm fuuuuuuuuuu
rm arrggh.txt
rm sigh
rm test
rm wtf2.html
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/./src/irods.o build/temp.linux-i686-2.6/./src/PyApiNumber.o build/temp.linux-i686-2.6/./src/PyAuth.o build/temp.linux-i686-2.6/./src/PyChkObjPermAndStat.o build/temp.linux-i686-2.6/./src/PyDataObj.o build/temp.linux-i686-2.6/./src/PyGetRodsEnv.o build/temp.linux-i686-2.6/./src/PyMd5.o build/temp.linux-i686-2.6/./src/PyMiscUtil.o build/temp.linux-i686-2.6/./src/PyModAccessControl.o build/temp.linux-i686-2.6/./src/PyMsParam.o build/temp.linux-i686-2.6/./src/PyObf.o build/temp.linux-i686-2.6/./src/PyParseCommandLine.o build/temp.linux-i686-2.6/./src/PyRcConnect.o build/temp.linux-i686-2.6/./src/PyRcMisc.o build/temp.linux-i686-2.6/./src/PyRodsAdmin.o build/temp.linux-i686-2.6/./src/PyRodsDef.o build/temp.linux-i686-2.6/./src/PyRodsError.o build/temp.linux-i686-2.6/./src/PyRodsExec.o build/temp.linux-i686-2.6/./src/PyRodsFile.o build/temp.linux-i686-2.6/./src/PyRodsInfo.o build/temp.linux-i686-2.6/./src/PyRodsIO.o build/temp.linux-i68
@timf
timf / gist:979708
Created May 18, 2011 22:13
diskspace alias
alias duf='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'''
@timf
timf / gist:1191338
Created September 3, 2011 15:24
OpenShift Open Source
https://www.redhat.com/openshift/faq
When will OpenShift Open Source?
We are planning to open source but we don't have a timeframe just yet.
Part of the code came from an acquisition and we need to work through
some legal processes and create a development environment in order to
engage the community.
#!/bin/sh
CUSTOM_OSX="/Applications/Emacs.app/Contents/MacOS/Emacs"
EXE=`which emacs`
if [ `uname` == "Darwin" ]; then
if [ -f $CUSTOM_OSX ]; then
EXE=$CUSTOM_OSX
fi
elif [ -f /usr/bin/emacs-snapshot ]; then