Skip to content

Instantly share code, notes, and snippets.


Łukasz Dywicki splatch

View GitHub Profile
View datasource.xml
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Austrian Association for Software Tool Integration (AASTI)
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding copyright
ownership. The AASTI licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
splatch /
Created Jun 30, 2015
Simple hamcrest map matcher which ensures that argument contains given keys and values.
import org.hamcrest.Description;
import org.mockito.ArgumentMatcher;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class MapMatcher extends ArgumentMatcher<Map> {
splatch /
Created Jul 17, 2015
Gather metrics using codahale stuff
Counter failCounter = new Counter();
Counter successCounter = new Counter();
Timer timer = new Timer();
public Y transform(X x) {
Timer.Context time = timer.time();
try {
Y transform = delegate.transform(x);
splatch / main.xml
Created Apr 12, 2011
New assembly packaging of Karaf
View main.xml
<component xmlns=""
<!-- Copy over everything that needs to get unix line endings -->
splatch / jquery.http.js
Created Apr 14, 2011
Extra http methods for jQuery based on X-HTTP-Method-Override header.
View jquery.http.js
function _ajax_request(url, data, callback, type, method) {
if (jQuery.isFunction(data)) {
callback = data;
data = {};
return jQuery.ajax({
type: "POST",
url: url,
data: data,
View gist:1134931
21:21:10,468 | ERROR | qtp893036286-68 | Objects | 219 - org.ops4j.pax.wicket.pax-wicket-service - 0.7.2 | Error serializing object class org.apache.karaf.webconsole.core.DashboardPage [object=[Page class = org.apache.karaf.webconsole.core.DashboardPage, id = 0, version = 0]]$WicketNotSerializableException: Unable to serialize class: org.apache.felix.framework.BundleContextImpl
Field hierarchy is:
0 [class=org.apache.karaf.webconsole.core.DashboardPage, path=0]
private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
java.lang.Object[1] [class=org.apache.karaf.webconsole.core.BasePage$1, path=0:tabs]
java.lang.Object [class=org.apache.wicket.model.util.WildcardListModel]
private java.lang.Object org.apache.wicket.model.util.GenericBaseModel.object [class=org.ops4j.pax.wicket.util.proxy.$Proxy87]
package org.code_house.webconsole.monitor.jmx;
import org.joda.time.DateTime;
import org.rrd4j.ConsolFun;
import org.rrd4j.core.FetchData;
import org.rrd4j.core.FetchRequest;
import org.rrd4j.core.RrdDb;
import org.rrd4j.core.Util;
public class Fetch {
View gist:1448327
View datasource.xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns=""
View atomikos.xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns=""