Skip to content

Instantly share code, notes, and snippets.

View cwoodcock's full-sized avatar

Colin Woodcock cwoodcock

View GitHub Profile
@cwoodcock
cwoodcock / Dockerfile.activiti-custom
Last active October 12, 2015 09:52
Example Dockerfile for extending Activiti with customisations
FROM cwoodcock/activiti
ENV REST_LIB_DIR /opt/tomcat/webapps/activiti-rest/WEB-INF/lib
ENV EXPLORER_LIB_DIR /opt/tomcat/webapps/activiti-explorer/WEB-INF/lib
# In this example (from a Maven project) all the project's dependencies
# were copied to target/lib by the maven-dependency-plugin
ADD target/lib /lib/
# Also add the artifact that has our customisations
@cwoodcock
cwoodcock / gitprompt
Last active August 29, 2015 14:04
Sets a colourful BASH prompt showing the branch and whether the repo is dirty or clean
#
# BASH snippet for use in ~/.bash_profile
#
# Not sure who the original author was, but it wasn't me.
#
# Putting this here so I remember where it is.
#
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@cwoodcock
cwoodcock / gist:7118893
Created October 23, 2013 13:35
A bash snippet to create a basic ext4 volume and swap on a disk. Initially written for use with Jenkins in EC2 using ephemeral disks for the app's temp space.
# Create a working and swap space on a disk
WORKING_SIZE=5G
SWAP_SIZE=5G
DISK=/dev/xvdf
MOUNT_POINT=/mnt/working
# Create the mount point
[[ ! -d $MOUNT_POINT ]] && mkdir $MOUNT_POINT