Skip to content

Instantly share code, notes, and snippets.

View diroussel's full-sized avatar

David Roussel diroussel

  • London, UK
  • 00:19 (UTC)
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@diroussel
diroussel / server_with_correlationId.js
Last active March 1, 2020 11:02
node server with correlationId pass though
const express = require('express');
const bodyParser = require('body-parser');
const pino = require('express-pino-logger');
const uuid = require('uuid');
const axios = require('axios');
const app = express();
const port = 3000;
function correlationIdMiddleware (options) {
const headerName = (options && options.header) || 'x-correlation-id';
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
~ $ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/share/man/man1/npm-README.1
/usr/local/share/man/man1/npm-access.1
@diroussel
diroussel / logback.xml
Created April 11, 2013 14:17
When using SiftingAppender and RollingFileAppender files do not get rolled on close.
<configuration>
<logger name="com.client.gcm" level="${log.level}" />
<logger name="com.client.system" level="${log.level}" />
<logger name="org.apache.commons.dbcp.DriverConnectionFactory" level="${log.level}" />
<logger name="httpclient" level="WARN" />
<logger name="org.apache" level="WARN" />
<logger name="org.apache.commons.httpclient" level="WARN" />
<logger name="org.apache.camel" level="${log.level}" />
<logger name="org.apache.activemq.transport" level="WARN" />
/**
* Returns an Iterable of all the values in all the submaps of the parent map.
*/
<K1, K2, T> Iterable<T> innerValues(Map<K1, Map<K2, T>> map) {
return Iterables.concat(
Iterables.transform(map.values(),
new Function<Map<K2, T>, Iterable<T>>() {
@Override
public Iterable<T> apply(Map<K2, T> innerMap) {
--- ConsoleTarget-HEAD.java Fri Jun 11 15:00:00 2010
+++ ConsoleTarget-with-fix.java Fri Jun 04 16:40:01 2010
@@ -22,6 +22,7 @@
* @author Ceki G&uuml;lc&uuml;
* @author Tom SH Liu
* @author Ruediger Dohna
+ * @author David Roussel
*/
public enum ConsoleTarget {