Skip to content

Instantly share code, notes, and snippets.

View cwash's full-sized avatar

Chris Wash cwash

View GitHub Profile
@cwash
cwash / stderr.log
Last active July 22, 2017 23:47
rancher network-manager logs on failing ipsec container host
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="routesync: DOCKER_BRIDGE=docker0, METADATA_IP=169.254.169.250"
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="routesync: starting monitoring on bridge: docker0, for metadataIP: 169.254.169.250 every 60 seconds"
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="Waiting for metadata"
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="Inspecting on start" cid=c7ef46e9e9460071d743df6e537f281b322bc163918a7a7c50cd180dbbfaaa2b running=true startedAt="2017-07-22T23:17:57.908299925Z"
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="Recording previously started" cid=c7ef46e9e9460071d743df6e537f281b322bc163918a7a7c50cd180dbbfaaa2b startedAt="2017-07-22T23:17:57.908299925Z"
7/22/2017 7:18:08 PMtime="2017-07-22T23:18:08Z" level=info msg="Inspecting on start" cid=f941b2e1dd4583705e96b6d152f3fa3524e1444831f476301a28828dc673f04b running=true startedAt="2017-07-22T23:17:57.489328691Z"
7/22/2017 7:18:08 PM
@cwash
cwash / gist:5861916
Created June 25, 2013 20:09
Dirty trick to speed up JAXBContext initialization
System.setProperty("com.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot", "true");
@cwash
cwash / JAXBContextLoader.java
Last active December 18, 2015 23:29
Singleton that follows the Initialization-on-demand idiom to initialize and front a thread-safe JAXBContext object.
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class JAXBContextLoader
{
private final Map<String, JAXBContext> contextMap;
private JAXBContextLoader()