Skip to content

Instantly share code, notes, and snippets.

View dkirrane's full-sized avatar

Desmond Kirrane dkirrane

  • Avaya
  • Galway, Ireland
View GitHub Profile
#!/bin/sh
##
# Run this from GitBash
##
mvn archetype:generate -B -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=1.1 -DgroupId=com.mycompany -DartifactId=Bug238423
cd Bug238423
git init
@dkirrane
dkirrane / git-rename-test.sh
Created November 21, 2013 13:51
Gist to create a Git reppo and rename and modify a file on 2 different branches
#!/bin/sh
##
# Gist to create a Git reppo and rename and modify a file on 2 different branches
##
mkdir renameTest
cd renameTest
git init
#!/bin/sh
##
# Removes all Git historyand loacl and remote branches & tags
# Reconstructs the repo with only the current content
# Pushes to origin
##
git fetch --all -p
#!/bin/sh
git config --unset-all "gitflow.branch.master"
git config --unset-all "gitflow.branch.develop"
git config --unset-all "gitflow.prefix.feature"
git config --unset-all "gitflow.prefix.release"
git config --unset-all "gitflow.prefix.hotfix"
git config --unset-all "gitflow.prefix.support"
git config --unset-all "gitflow.prefix.versiontag"
@dkirrane
dkirrane / gist:10630823
Created April 14, 2014 09:14
Logging for WLP Aruillian issue ARQ-1759
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building arquillian-tutorial 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ arquillian-tutorial ---
[INFO] Deleting C:\Dev\Git\BitBucket\arquillian-stuff\arquillian-tutorial\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.0.201403182114:prepare-agent (prepare-agent) @ arquillian-tutorial ---
@dkirrane
dkirrane / findParent.sh
Created July 3, 2014 09:58
Find the parent branch of the current branch
current_branch=`git rev-parse --abbrev-ref HEAD`
git show-branch -a | grep '*' | grep -v $current_branch | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_4b410cb9_14.08.06_05.50.34.9121485554497846906782.txt
[8/6/14 5:50:34:912 IST] FFDC Exception:javax.servlet.ServletException SourceId:com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters -SE ProbeId:1078
javax.servlet.ServletException: java.io.IOException: "text/html" DataContentHandler requires String object, was given object of type class java.util.ArrayList
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)
at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
@dkirrane
dkirrane / install-docker.sh
Last active June 30, 2017 11:56 — forked from wdullaer/install.sh
Docker install
# Add Docker PPA and install latest version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker -y
# Install fig
sudo su
curl -L https://github.com/docker/fig/releases/download/1.0.0/fig-`uname -s`-`uname -m` > /usr/local/bin/fig
chmod +x /usr/local/bin/fig
@dkirrane
dkirrane / DeltaSpike Custom ConfigSource.ini
Last active August 29, 2015 14:14
DeltaSpike Custom ConfigSource
#####
# http://deltaspike.apache.org/documentation/configuration.html#_custom_configsources
#####
# ConfigSources are picked up using the `java.util.ServiceLoader’ mechanism so follow steps below to add a Custom one:
# 1. Create a file named:
/META-INF/services/org.apache.deltaspike.core.spi.config.ConfigSource
# 2. Implement the Interface ConfigSource http://deltaspike.apache.org/javadoc/1.2.1/org/apache/deltaspike/core/spi/config/ConfigSource.html
@dkirrane
dkirrane / affirmation
Created February 9, 2015 10:42
MuleSoft Contributor Agreement Acceptance by Desmond Kirrane
I, Desmond Kirrane, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Mon Feb 09 2015 10:42:49 GMT+0000 (GMT Standard Time)