Skip to content

Instantly share code, notes, and snippets.

@rombert
rombert / Oak-multiplexing.md
Created June 1, 2016 13:21
Oak multiplexing

Instructions for setting up Oak with multiplexing

These assume that you are familiar with Oak and Sling.

  1. (Oak) Checkout and build the features/docstore-multiplex branch of https://github.com/rombert/jackrabbit-oak/
  2. (Sling) Configure Sling to use a multiplexed mount by default
diff --git a/bundles/jcr/oak-server/pom.xml b/bundles/jcr/oak-server/pom.xml
@rombert
rombert / javad
Last active December 7, 2015 17:50
javad script, drop in ~/bin/ and never try to remember the Java debug flags again. Wherever you would use the java command, just use javad
#!/bin/sh
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=${SUSPEND:-n},address=${PORT:-30303} "$@"
@rombert
rombert / pre-receive-puppet
Last active June 6, 2017 17:38 — forked from hartfordfive/pre-receive-puppet
Server-side pre-receive hook to validate puppet files.
#!/bin/bash
# See https://www.kernel.org/pub/software/scm/git/docs/githooks.html#pre-receive
oldrev=$1
newrev=$2
refname=$3
while read oldrev newrev refname; do
# Get the file names, without directory, of the files that have been modified
Bus 002 Device 003: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 8
idVendor 0x045e Microsoft Corp.
@rombert
rombert / keybase.md
Created September 30, 2014 11:34
keybase.md

Keybase proof

I hereby claim:

  • I am rombert on github.
  • I am rombert (https://keybase.io/rombert) on keybase.
  • I have a public key whose fingerprint is 0A66 5C46 70B4 78BF 1223 5CCD 3395 0865 4F63 EC54

To claim this, I am signing this object:

@rombert
rombert / pom.xml
Created May 6, 2014 15:15
pom.xml which shows my failed attempt to use mvn launchpad:run to start a launchpad instance
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more contributor license
agreements. See the NOTICE file distributed with this work for additional information
regarding copyright ownership. The ASF 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 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
@rombert
rombert / ereviewboard.target
Created December 19, 2013 21:45
EReviewboard + Mylyn Reviews 2.0 target file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="ereviewboard" sequenceNumber="66">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.egit.feature.group" version="1.0.0.201106090707-r"/>
<unit id="org.eclipse.jgit.feature.group" version="1.0.0.201106090707-r"/>
<repository location="http://download.eclipse.org/egit/updates-1.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.io" version="2.0.1.v201105210651"/>
@rombert
rombert / log.txt
Created January 23, 2012 12:11
m2eclipse-tycho-5
2012-01-23 13:58:43,183 [Worker-1] DEBUG o.e.m.c.i.builder.MavenBuilder - Building project project-client
2012-01-23 13:58:43,185 [Worker-1] DEBUG o.e.m.c.i.p.r.ProjectRegistryManager - Refreshing: [/project-client/pom.xml]
2012-01-23 13:58:43,186 [Worker-1] DEBUG o.e.m.c.internal.embedder.MavenImpl - Reading Maven project: /home/robert/w/workspace/content/src/project-client/pom.xml
2012-01-23 13:58:43,190 [Worker-1] DEBUG o.e.m.c.internal.embedder.MavenImpl - Read Maven project: /home/robert/w/workspace/content/src/project-client/pom.xml in 4 ms
2012-01-23 13:58:43,206 [Worker-1] DEBUG o.e.m.c.i.m.MavenMarkerManager - Created marker 'GroupId is duplicate of parent groupId' on resource '/project-client/pom.xml'.
2012-01-23 13:58:43,210 [Worker-1] DEBUG o.e.m.c.i.l.LifecycleMappingFactory - Loading lifecycle mapping for MavenProject: com.example:project-client:0.2.0-SNAPSHOT @ /home/robert/w/workspace/content/src/project-client/pom.xml.
2012-01-23 13:58:43,220 [Worker-1] INFO o.e.m.c.i.l.LifecycleMappingFacto
#!/bin/bash
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository
#shopt -o -s xtrace
# Define Nexus Configuration
NEXUS_BASE=http://repository.example.com:8081/nexus
REST_PATH=/service/local
ART_REDIR=/artifact/maven/redirect
import java.io.*;
import java.util.Locale;
public class LocaleSerialisation {
public static void main(String[] args) throws IOException, ClassNotFoundException {
Locale toWrite = new Locale("en", "EN");
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
ObjectOutputStream output = new ObjectOutputStream(byteOutput);