Skip to content

Instantly share code, notes, and snippets.

View keuss's full-sized avatar
:octocat:
Working from home

Guillaume GALLOIS keuss

:octocat:
Working from home
View GitHub Profile
@keuss
keuss / gitflow-breakdown.md
Created June 7, 2017 08:38 — forked from ubante/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@keuss
keuss / AppContext.java
Last active April 11, 2023 15:47
ThreadLocal Helper to manage transaction id
package com.keuss.bean;
public class AppContext {
/**
* The unique transaction id per http request
*/
private String transactionId = null;
private String userId = null;
@keuss
keuss / kata.md
Created November 28, 2019 09:21 — forked from abachar/kata.md
Bank account kata (Sandro Mancuso)

Bank account kata

Think of your personal bank account experience When in doubt, go for the simplest solution

Requirements

  • Deposit and Withdrawal
  • Account statement (date, amount, balance)
  • Statement printing

User Stories

US 1:
@keuss
keuss / PropertyLogger.java
Created April 27, 2020 10:04 — forked from sandor-nemeth/PropertyLogger.java
Spring Boot - Log all configuration properties on application startup
package de.idealo.ecommerce.order.history.config;
import java.util.Arrays;
import java.util.stream.StreamSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.env.AbstractEnvironment;
@keuss
keuss / TestPDF.java
Last active December 8, 2020 11:05
Java Test PDF with flying-saucer-pdf lib
package com.testpdf;
import com.lowagie.text.DocumentException;
import org.junit.Assert;
import org.junit.Test;
import org.xhtmlrenderer.pdf.ITextRenderer;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;