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
##
# 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 ---
/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 / 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)
@dkirrane
dkirrane / affirmation
Created February 9, 2015 10:43
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:43:28 GMT+0000 (GMT Standard Time)
@dkirrane
dkirrane / kibana.json
Created March 31, 2015 11:58
kibana.json
[
{
"_index": ".kibana",
"_type": "dashboard",
"_id": "AllLogsDashboard",
"_score": 0,
"_source": {
"title": "AllLogsDashboard",
"hits": 0,
"description": "",
@dkirrane
dkirrane / gist:06e0a07cb42a6e41f012
Created March 31, 2015 13:19
kibana-export.json
[
{"_index":".kibana","_type":"dashboard","_id":"AllLogsDashboard","_score":0,"_source":{"title":"AllLogsDashboard","hits":0,"description":"","panelsJSON":"[{\"id\":\"puLogs\",\"type\":\"search\",\"size_x\":12,\"size_y\":4,\"col\":1,\"row\":5},{\"id\":\"wlpLogs\",\"type\":\"search\",\"size_x\":12,\"size_y\":4,\"col\":1,\"row\":1}]","version":1,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"filter\":[{\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}}]}"}}}
,{"_index":".kibana","_type":"dashboard","_id":"AllOtherLogs","_score":0,"_source":{"title":"AllOtherLogs","hits":0,"description":"","panelsJSON":"[{\"id\":\"deployLogs\",\"type\":\"search\",\"size_x\":3,\"size_y\":2,\"col\":1,\"row\":1},{\"id\":\"gigaspacesLogs\",\"type\":\"search\",\"size_x\":3,\"size_y\":2,\"col\":4,\"row\":1},{\"id\":\"impuLogs\",\"type\":\"search\",\"size_x\":3,\"size_y\":2,\"col\":7,\"row\":1},{\"id\":\"puInitLogs\",\"type\":\"search\",\"size_x\":3,\"size_y\":2,\"col\":10,\"row\":1},{\"id\":\"smLogs\",\"type\":
@dkirrane
dkirrane / 0_reuse_code.js
Created October 20, 2015 09:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console