Skip to content

Instantly share code, notes, and snippets.

View remibantos's full-sized avatar

Rémi Bantos remibantos

  • France
View GitHub Profile
@remibantos
remibantos / stub_api_calls_with_webpack_dev_server.md
Last active May 5, 2018 21:33 — forked from kafkahw/mock_api_webpack
How to stubI backend API calls with webpack dev-server

How to stub backend API calls with webpack-dev-server

Add the following to webpack dev server configuration

@remibantos
remibantos / CodingGame - Skynet.java
Last active January 30, 2016 15:39
codingame.com - Skynet
import java.util.Scanner;
class Player {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int road = in.nextInt(); // the length of the road before the gap.
int gap = in.nextInt(); // the length of the gap.
int platform = in.nextInt(); // the length of the landing platform.
@remibantos
remibantos / CodinGame - Descent.java
Last active January 30, 2016 15:40
codingame.com - The descent
package org.rembx.jeeshop.order;
import java.util.Scanner;
class Player {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int maxMountainH = 0;
@remibantos
remibantos / microservices.md
Last active February 26, 2023 10:00
Microservices - Cheat sheet

Microservices - Cheat sheet

Based on Microservices presentation by Martin Fowler recorded at GOTO Berlin 2014.

Common caracteristics

  1. Components (= independently upgradable, replaçable) communicating through services (instead of libs for monoliths)
  2. Organized around business capabilities
  3. Smart endpoints and dumb pipes
  4. Decentralized data management
@remibantos
remibantos / wildfly_httpcache.md
Last active August 31, 2021 14:31
Wildfly 8 - HTTP cache headers tuning for rich client web application

Introduction

This Gist describes how to tune HTTP browser cache expiration for static contents served by Wildfly Undertow web server, as per RFC-2616 section 13.

Wildfly configuration

Description

In order to change HTTP browser cache behavior, a "Cache-Control" HTTP header has to be added to static content HTTP responses returned by Undertow.

Undertow subsystem configuration (standalone.xml)

@remibantos
remibantos / wildfly_wmq.md
Last active August 24, 2022 07:03
Message Driven Beans with Wildfly and Websphere MQ

Message Driven Beans with Wildfly and Websphere MQ

Introduction

This page describes MDB (Message Driven Bean) configuration with Wildfly (> version 8 implementing Java EE 7/8) and Websphere MQ messaging broker.

Websphere MQ Resource Adapter

Description

Websphere MQ provides a resource adapter which is able to interact with latest and even legacy Websphere MQ versions. (See this link for WMQ v8.0 Resource Adapter compatibility details)