Skip to content

Instantly share code, notes, and snippets.

View dkirrane's full-sized avatar

Desmond Kirrane dkirrane

  • Avaya
  • Galway, Ireland
View GitHub Profile
@dkirrane
dkirrane / quickpick
Created May 21, 2017 19:38 — forked from Dyrcona/quickpick
A bash script to batch git cherry-pick of many commits from a single source branch. It can become a new git command if you save it in your path with a name like git-quickpick. Then, you can run it like so `git quickpick foo/bar'. Very handy, that.
#!/bin/bash
# Author: Thomas Berezansky <tsbere@mvlc.org>
# Author: Jason Stephenson <jstephenson@mvlc.org>
#
# Feel free to use and to share this script in anyway you like.
# This script is intended as a shortcut for the git cherry-pick
# command when you have several commits that you want to cherry-pick
# into your local branch from another branch. It often results in a
@dkirrane
dkirrane / gist:f84f2e17e6005853b89db7418e05bae9
Created February 4, 2017 00:10
NullPointerException RecommendedTemplatesImpl.getPrivilegedTemplates
java.lang.NullPointerException
at org.netbeans.modules.maven.queries.RecommendedTemplatesImpl.getPrivilegedTemplates(RecommendedTemplatesImpl.java:190)
at org.netbeans.spi.project.ui.support.UILookupMergerSupport$PrivilegedTemplatesImpl.getPrivilegedTemplates(UILookupMergerSupport.java:196)
at org.netbeans.modules.project.ui.OpenProjectList.getTemplateNamesLRU(OpenProjectList.java:1454)
at org.netbeans.modules.project.ui.OpenProjectList.getTemplatesLRU(OpenProjectList.java:1151)
at org.netbeans.modules.project.ui.OpenProjectList.prepareTemplates(OpenProjectList.java:1346)
at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1314)
at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1379)
at org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:823)
at org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:675)
@dkirrane
dkirrane / NbMavenProjectCache.patch
Created February 3, 2017 19:05
NbMavenProjectCache.patch
diff --git a/maven/src/org/netbeans/modules/maven/modelcache/MavenProjectCache.java b/maven/src/org/netbeans/modules/maven/modelcache/MavenProjectCache.java
index 97d902295c1..b05bb281c9d 100644
--- a/maven/src/org/netbeans/modules/maven/modelcache/MavenProjectCache.java
+++ b/maven/src/org/netbeans/modules/maven/modelcache/MavenProjectCache.java
@@ -46,6 +46,7 @@ import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashSet;
16/03/30 18:46:51 ERROR NetworkClient: Node [172.18.0.2:9200] failed (Connection timed out: connect); selected next node [10.123.45.67:9200]
16/03/30 18:48:15 ERROR NetworkClient: Node [172.18.0.2:9200] failed (Connection timed out: connect); no other nodes left - aborting...
16/03/30 18:48:15 ERROR Executor: Exception in task 0.0 in stage 12.0 (TID 609)
org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection error (check network and/or proxy settings)- all nodes failed; tried [[172.18.0.2:9200]]
at org.elasticsearch.hadoop.rest.NetworkClient.execute(NetworkClient.java:142)
at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:423)
at org.elasticsearch.hadoop.rest.RestClient.executeNotFoundAllowed(RestClient.java:431)
at org.elasticsearch.hadoop.rest.RestClient.exists(RestClient.java:507)
at org.elasticsearch.hadoop.rest.RestClient.touch(RestClient.java:513)
at org.elasticsearch.hadoop.rest.RestRepository.touch(RestRepository.java:491)
@dkirrane
dkirrane / elasticsearch.log
Created January 25, 2016 16:20
elasticsearch dashboard issue
[2016-01-25 16:13:53,049][INFO ][node ] [search-wa] version[2.1.1], pid[80], build[40e2c53/2015-12-15T13:05:55Z]
[2016-01-25 16:13:53,050][INFO ][node ] [search-wa] initializing ...
[2016-01-25 16:13:53,285][INFO ][plugins ] [search-wa] loaded [], sites []
[2016-01-25 16:13:53,350][INFO ][env ] [search-wa] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [401.5gb], net total_space [432.7gb], spins? [unknown], types [rootfs]
[2016-01-25 16:13:54,557][INFO ][node ] [search-wa] version[2.1.1], pid[171], build[40e2c53/2015-12-15T13:05:55Z]
[2016-01-25 16:13:54,558][INFO ][node ] [search-wa] initializing ...
[2016-01-25 16:13:54,704][INFO ][plugins ] [search-wa] loaded [], sites []
[2016-01-25 16:13:54,749][INFO ][env ] [search-wa] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [401.5gb], net total_space [432.7gb], spins? [unknown],
@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
@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 / 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 / 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 / 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)