Skip to content

Instantly share code, notes, and snippets.

View waldheinz's full-sized avatar

Matthias Treydte waldheinz

View GitHub Profile
@msosvi
msosvi / Slf4jSessionLogger.java
Created October 30, 2011 10:25
This is a wrapper class for SLF4J. It is used when EclipseLink messages need to be logged through SLF4J.
package org.eclipse.persistence.logging;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
/**
@xkikeg
xkikeg / ddrescue_chart.py
Last active April 30, 2019 08:54
This script visualize the logfile of GNU ddrescue.
#!/usr/bin/python
import argparse
import sys
import math
import operator
import itertools
import Image, ImageDraw
# http://stackoverflow.com/questions/14423794/equivalent-of-haskell-scanl-in-python