Skip to content

Instantly share code, notes, and snippets.

View cescoffier's full-sized avatar
⚗️
Quarking...

Clement Escoffier cescoffier

⚗️
Quarking...
View GitHub Profile
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS info.picocli:picocli:4.5.0
//DEPS org.eclipse.jgit:org.eclipse.jgit:5.10.0.202012080955-r
//DEPS org.eclipse.jgit:org.eclipse.jgit.gpg.bc:5.10.0.202012080955-r
//DEPS org.kohsuke:github-api:1.122
//DEPS commons-io:commons-io:2.8.0
//DEPS org.slf4j:slf4j-jdk14:1.7.30
import org.apache.commons.io.FileUtils;
import org.eclipse.jgit.api.CherryPickResult;

Keybase proof

I hereby claim:

  • I am cescoffier on github.
  • I am cescoffier (https://keybase.io/cescoffier) on keybase.
  • I have a public key ASC8ybjXsNKHF59bNxYdSY9On5NEGOVh39RP29SkJFMETAo

To claim this, I am signing this object:

version: '2'
services:
zookeeper:
image: strimzi/kafka:0.11.3-kafka-2.1.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
package io.vertx.ext.amqp;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
apiVersion: "istio.openshift.com/v1alpha1"
kind: "Installation"
metadata:
name: "istio-installation"
spec:
deployment_type: origin
istio:
authentication: true
community: false
version: 0.2.0
#!/bin/bash
#!/bin/bash
set -e
RED='\033[0;31m'
NC='\033[0m' # No Color
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
if ((`git status -sb | wc -l` != 1)); then
@cescoffier
cescoffier / MyFirstVerticle.java
Created May 8, 2017 16:47
Example of verticle reconfiguration
package io.vertx.sample;
import io.vertx.config.ConfigRetrieverOptions;
import io.vertx.config.ConfigStoreOptions;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.rxjava.config.ConfigRetriever;
import io.vertx.rxjava.core.AbstractVerticle;
public class MyFirstVerticle extends AbstractVerticle {
@cescoffier
cescoffier / my-vertx-application
Last active February 26, 2018 18:52
Vert.x init.d service script
#!/bin/bash
###
# chkconfig: 345 20 80
# description: Vert.x application service script
# processname: java
#
# Installation (CentOS):
# copy file to /etc/init.d
# chmod +x /etc/init.d/my-vertx-application
#!/usr/bin/env bash
PROJECT=$(./oc project -q)
echo "Cleaning up current project: ${PROJECT}"
# https://docs.openshift.org/latest/cli_reference/basic_cli_operations.html#object-types
./oc delete build --all
./oc delete bc --all
./oc delete dc --all
./oc delete deploy --all
package me.escoffier.misc;
import java.util.HashSet;
import java.util.Set;
/**
* Generates names.
*
* @author <a href="http://escoffier.me">Clement Escoffier</a>
*/