I hereby claim:
- I am trekawek on github.
- I am trekawek (https://keybase.io/trekawek) on keybase.
- I have a public key whose fingerprint is 59BC C985 4998 DFA6 29A9 C560 911B BFC2 E342 5704
To claim this, I am signing this object:
package org.apache.jackrabbit.oak.jcr; | |
import java.util.concurrent.Executors; | |
import javax.jcr.Repository; | |
import javax.jcr.RepositoryException; | |
import javax.jcr.Session; | |
import javax.jcr.SimpleCredentials; | |
import org.apache.jackrabbit.oak.api.CommitFailedException; |
#!/bin/sh | |
NAME=`basename "$1" .txt` | |
mplayer -quiet -endpos 0 -vo null -ao null -subcp cp1250 -sub "$NAME.txt" -dumpsrtsub "$NAME.avi" | |
mv dumpsub.srt "$NAME.srt" |
# required modules: | |
# * setenvif | |
# * rewrite | |
# * headers | |
SetEnvIf Https-Header "1" is_https=1 | |
Header edit Set-Cookie JSESSIONID=(.+)$ "JSID_SECURE=$1; secure" env=is_https | |
Header edit Set-Cookie JSESSIONID JSID_HTTP env=!is_https | |
RequestHeader edit Cookie JSID_SECURE JSESSIONID env=is_https |
/* This OSGi service listens for events and creates a job for each one matching some conditions. */ | |
@Component | |
@Service | |
@Properties({ | |
// choose appropriate topic values | |
@Property(name = EventConstants.EVENT_TOPIC, value = { | |
SlingConstants.TOPIC_RESOURCE_CHANGED, | |
SlingConstants.TOPIC_RESOURCE_ADDED, | |
SlingConstants.TOPIC_RESOURCE_REMOVED | |
}) |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class MethodInvocation { | |
private final Method method; | |
private final Object[] args; | |
private final Class<?> clazz; |
#!/usr/bin/ruby | |
require 'openssl' | |
if ARGV.length != 2 | |
puts "Usage:" | |
puts "./cq_password.rb HASHED_PASSWORD PLAIN_PASSWORD" | |
abort | |
end |
public class LinkedListReverse { | |
public static void main(String[] args) { | |
Node head = addElement("Monday", null); | |
addElement("Tuesday", head); | |
addElement("Wednesday", head); | |
printList(head); | |
head = reverseList(head); | |
printList(head); | |
} |
I hereby claim:
To claim this, I am signing this object:
import javax.jcr.* | |
import org.apache.sling.api.resource.* | |
def ROOT_PATH = '/content/geometrixx' | |
def extractPaths(p) { | |
if (p instanceof Property && p.multiple) { | |
p.values.collect { extractPaths(it) }.flatten() | |
} else { | |
p.string.findAll(/\/content\/[^"]+/) |