Skip to content

Instantly share code, notes, and snippets.

⚗️
Quarking...

Clement Escoffier cescoffier

⚗️
Quarking...
Block or report user

Report or block cescoffier

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
View keybase.md

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:

View docker-compose.yaml
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"
]
View RequestReplyTest.java
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;
View istio-installation-distributed-tracing.yaml
apiVersion: "istio.openshift.com/v1alpha1"
kind: "Installation"
metadata:
name: "istio-installation"
spec:
deployment_type: origin
istio:
authentication: true
community: false
version: 0.2.0
View release-booster.sh
#!/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 / CollectionCodecs.java
Created Dec 7, 2017
Example how to use Collection Codec with Vert.x Web Client
View CollectionCodecs.java
package com.example.demo;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.codec.BodyCodec;
import io.vertx.ext.web.codec.impl.BodyCodecImpl;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
View oc-cleanup.sh
#!/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
View UserNameGenerator.java
package me.escoffier.misc;
import java.util.HashSet;
import java.util.Set;
/**
* Generates names.
*
* @author <a href="http://escoffier.me">Clement Escoffier</a>
*/
@cescoffier
cescoffier / MyFirstVerticle.java
Created May 8, 2017
Example of verticle reconfiguration
View MyFirstVerticle.java
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 {
View MysqlErrorCodeWithRx.java
@Override
public void start(Future<Void> fut) {
jdbcClient = JDBCClient.createShared(vertx, new JsonObject()
.put("url", "jdbc:mysql://localhost:3306/data")
.put("driver_class", "com.mysql.cj.jdbc.Driver")
.put("user", "user")
.put("password", "secret")
.put("max_pool_size", 30));
Json.prettyMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
You can’t perform that action at this time.