Skip to content

Instantly share code, notes, and snippets.

View hjmjohnson's full-sized avatar

Hans Johnson hjmjohnson

View GitHub Profile
@hjmjohnson
hjmjohnson / CreateGitInspector.sh
Created May 9, 2014 18:01
Create git based statistics script for different projects
#!/bin/sh
# Need more modern version of git than is provided by default
export PATH=/scratch/git-build/bin:${PATH}
SOURCE_BASE_DIR=/scratch
if [ ! -d ${SOURCE_BASE_DIR}/gitinspector ]; then
git clone https://code.google.com/p/gitinspector/ ${SOURCE_BASE_DIR}/gitinspector
@hjmjohnson
hjmjohnson / llvm_builder.sh
Created May 7, 2014 19:19
Public llvm_builder.sh
#!/bin/bash
USER_DIR=$(whoami)
BASE_DIR=/scratch/${USER_DIR}/src/
mkdir -p ${BASE_DIR}
if [ ! -d ${BASE_DIR} ]; then
echo "ERROR: ${BASE_DIR} does not exists"
exit -1
fi
@hjmjohnson
hjmjohnson / RegisterImages.sh
Created March 9, 2013 14:01
Shell Script for registering data from BAW.
#!/bin/bash
# Ali Ghayoor 08/03/13
# This program uses ants tools to register two images by concatenating their atlas transforms.
# Usage:
# ~/registerByConcatenationAtlasTransforms FixedImage MovingImage AtlasToFixComposite AtlasToFixInvComposite AtlasToMovingComposite AtlasToMoingInvComposite
# Target Outputs: