Skip to content

Instantly share code, notes, and snippets.

View ndeloof's full-sized avatar
💭
Preparing a new set of bugs

Nicolas De loof ndeloof

💭
Preparing a new set of bugs
View GitHub Profile
@ndeloof
ndeloof / docker.sh
Created February 1, 2023 09:05
completion for docker CLI
# bash completion V2 for docker -*- shell-script -*-
__docker_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# Macs have bash3 for which the bash-completion package doesn't include
#! /bin/bash
# Compatibility check for registry to support multi-architecutre docker images
# (also required for docker app support)
#
# Usage:
# docker login <REGISTRY>
# ...
# ./multiarch.sh <REGISTRY>
#
#! /bin/bash
# Compatibility check for registry to support multi-architecutre docker images
# (also required for docker app support)
#
# Usage:
# docker login <REGISTRY>
# ...
# ./multiarch.sh <REGISTRY>
#
@ndeloof
ndeloof / eks.md
Created September 11, 2019 08:01
compose-on-eks

Following docs on https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html

Create EKS cluster

~ eksctl create cluster --name kikito --version 1.14 --nodegroup-name standard-workers --node-type m5.large --nodes 2 --nodes-min 1 --nodes-max 4 --node-ami auto --ssh-access
[ℹ]  using region eu-west-3
[ℹ]  setting availability zones to [eu-west-3a eu-west-3b eu-west-3c]
[ℹ]  subnets for eu-west-3a - public:192.168.0.0/19 private:192.168.96.0/19
[ℹ]  subnets for eu-west-3b - public:192.168.32.0/19 private:192.168.128.0/19
pipelines:
build:
steps:
- image: alpine
sh: "hello world"
@ndeloof
ndeloof / pipeline.yaml
Created June 7, 2019 08:19
Tekton Hello-world
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: say-hello
spec:
inputs:
params:
- name: who
description: who to say hello
default: kitty
@ndeloof
ndeloof / pipeline.yaml
Created June 7, 2019 08:19
Tekton Hello-world
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: say-hello
spec:
inputs:
params:
- name: who
description: who to say hello
default: kitty
@ndeloof
ndeloof / gist:7c6632c11be8faacae428128f5850053
Created September 2, 2017 22:44
failure running `mvn hpi:run` from remoting-plugin
Exception in thread "main" java.util.ServiceConfigurationError: jenkins.bootstrap.BootLogic: Provider hudson.WebAppMain could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at jenkins.bootstrap.Bootstrap.loadBootLogics(Bootstrap.java:209)
at jenkins.bootstrap.Bootstrap.contextInitialized(Bootstrap.java:106)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:890)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
@ndeloof
ndeloof / keybase.md
Created November 14, 2016 15:16
keybase.md

Keybase proof

I hereby claim:

  • I am ndeloof on github.
  • I am ndeloof (https://keybase.io/ndeloof) on keybase.
  • I have a public key whose fingerprint is 06A1 945C 671F 0530 F392 1434 9858 809D 6F8F 6E7E

To claim this, I am signing this object:

---
- build: # stage ('build') { ...
# define the docker image used to run the build
# an implicit volume for current project's git working copy is mounted
image: maven:3.3-jdk-8
# set environment variables, use $$ for credentials injection, as used by http://readme.drone.io/usage/secrets/
environment:
- foo: bar