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
dkirrane / kubectl.md
Created May 28, 2019 — forked from so0k/kubectl.md
Playing with kubectl output
View kubectl.md

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
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
dkirrane / README.md
Created Jul 9, 2018 — forked from guillaumerose/README.md
Speedup your Maven builds
View README.md

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:

Example:

# 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
View graphdat-install-conntrack-tools.sh
#!/bin/bash
# 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
dkirrane / docker-compose.yml
Last active Sep 26, 2017
GoCD docker-compose.yml
View docker-compose.yml
# https://hub.docker.com/r/gocd/gocd-server/
server:
image: gocd/gocd-server:v17.10.0
hostname: go-server # Needed so the go-agent can find the server
ports:
- '8153:8153'
- '8154:8154'
environment:
- GO_SERVER_SYSTEM_PROPERTIES='-Dgo.plugin.upload.enabled=true'
# https://hub.docker.com/r/gocd/gocd-agent-alpine-3.5/
@dkirrane
dkirrane / readme.md
Created May 30, 2017 — forked from cedricwalter/readme.md
Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call
View readme.md

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

or

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
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
#!/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 Feb 4, 2017
NullPointerException RecommendedTemplatesImpl.getPrivilegedTemplates
View gist:f84f2e17e6005853b89db7418e05bae9
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)
View 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;
View 45834.log
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)
You can’t perform that action at this time.