Skip to content

Instantly share code, notes, and snippets.

Dessie dkirrane

Block or report user

Report or block dkirrane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dkirrane /
Created May 28, 2019 — forked from so0k/
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
dkirrane / packerlog.txt
Created Jan 29, 2019
packer-builder-vsphere issues 126
View packerlog.txt
2019/01/29 16:11:43 [INFO] Packer version: 1.3.3
2019/01/29 16:11:43 Packer Target OS/Arch: windows amd64
2019/01/29 16:11:43 Built with Go Version: go1.11.2
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-clone = C:\apps\HashiCorp\packer-builder-vsphere-clone.exe
2019/01/29 16:11:43 [DEBUG] Discovered plugin: vsphere-iso = C:\apps\HashiCorp\packer-builder-vsphere-iso.exe
2019/01/29 16:11:43 Detected home directory from env var: C:\Users\myusername
2019/01/29 16:11:43 Using internal plugin for qemu
2019/01/29 16:11:43 Using internal plugin for triton
2019/01/29 16:11:43 Using internal plugin for vmware-vmx
2019/01/29 16:11:43 Using internal plugin for null
dkirrane /
Created Jul 9, 2018 — forked from guillaumerose/
Speedup your Maven builds

With the latest version of Docker for Mac and Windows (18.06), you can prefix all your mvn commands by RUN --mount=target=/root/.m2,type=cache:


# syntax = tonistiigi/dockerfile:runmount20180618
FROM maven:3.5-jdk-8-alpine AS build
COPY . .
RUN --mount=target=/root/.m2,type=cache mvn --batch-mode clean compile assembly:single

FROM openjdk:8-jre-alpine3.7
# Make sure we have the dev tools
yum groupinstall "Development Tools"
# Just in case you started installing dependencies from yum
# yum -y remove libnfnetlink
# lets put the source code here
mkdir -p ~/.src
dkirrane / docker-compose.yml
Last active Sep 26, 2017
GoCD docker-compose.yml
View docker-compose.yml
image: gocd/gocd-server:v17.10.0
hostname: go-server # Needed so the go-agent can find the server
- '8153:8153'
- '8154:8154'
- GO_SERVER_SYSTEM_PROPERTIES='-Dgo.plugin.upload.enabled=true'
dkirrane /
Created May 30, 2017 — forked from cedricwalter/
Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call

Fetching artifact programmatically through REST/API

Nexus 2.x

Nexus 2.x had a REST API to download artifacts like below based on some Maven GAV co-ordinates but this no longer works for Nexus 3.x

wget "http://local:8081/service/local/artifact/maven/redirect?g=com.mycompany&a=my-app&v=LATEST" --content-disposition


curl --insecure "https://local:8081/service/local/artifact/maven/content?r=public&g=log4j&a=log4j&v=1.2.17&p=jar&c=" > log4j.jar

dkirrane / quickpick
Created May 21, 2017 — 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.
View quickpick
# Author: Thomas Berezansky <>
# Author: Jason Stephenson <>
# 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 / gist:f84f2e17e6005853b89db7418e05bae9
Created Feb 4, 2017
NullPointerException RecommendedTemplatesImpl.getPrivilegedTemplates
View gist:f84f2e17e6005853b89db7418e05bae9
at org.netbeans.modules.maven.queries.RecommendedTemplatesImpl.getPrivilegedTemplates(
at org.netbeans.modules.project.ui.OpenProjectList.getTemplateNamesLRU(
at org.netbeans.modules.project.ui.OpenProjectList.getTemplatesLRU(
at org.netbeans.modules.project.ui.OpenProjectList.prepareTemplates(
at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(
at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(
at org.netbeans.modules.project.ui.OpenProjectList$
View NbMavenProjectCache.patch
diff --git a/maven/src/org/netbeans/modules/maven/modelcache/ b/maven/src/org/netbeans/modules/maven/modelcache/
index 97d902295c1..b05bb281c9d 100644
--- a/maven/src/org/netbeans/modules/maven/modelcache/
+++ b/maven/src/org/netbeans/modules/maven/modelcache/
@@ -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;
View 45834.log
16/03/30 18:46:51 ERROR NetworkClient: Node [] failed (Connection timed out: connect); selected next node []
16/03/30 18:48:15 ERROR NetworkClient: Node [] 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) Connection error (check network and/or proxy settings)- all nodes failed; tried [[]]
You can’t perform that action at this time.