This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<!-- | |
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.gmongo.GMongo | |
import com.mongodb.util.JSON | |
import groovy.json.* | |
//https://github.com/poiati/gmongo | |
def mk = osgi.getService(org.apache.jackrabbit.mk.api.MicroKernel.class) | |
def db = GMongo.patchAndReturn(mk.store.nodes.DB) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.text.SimpleTemplateEngine | |
import org.osgi.framework.FrameworkUtil | |
import org.apache.jackrabbit.commons.observation.ListenerTracker | |
def services = osgi.getServices(org.apache.jackrabbit.api.jmx.EventListenerMBean.class,"(jmx.objectname=*)") | |
trackerToSessionMap = getListnerToSessionMap() | |
def listeners = services.collect { getDetails(it) } | |
def allListeners = listeners | |
listeners = listeners.findAll {it.class != 'org.apache.sling.installer.provider.jcr.impl.WatchedFolder'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.text.SimpleTemplateEngine | |
def services = osgi.getServices(org.apache.jackrabbit.api.jmx.EventListenerMBean.class,"(jmx.objectname=*)") | |
def listeners = services.collect { getDetails(it) } | |
listeners = listeners.sort {it.path} | |
listeners.eachWithIndex{l,i -> l.index = i+1} | |
def ttf = new TemplateFactory() | |
ttf.addColumn("index",4).addColumn("path",45).addColumn("class",100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Logstash Config File for parsing existing Logs in Cq/Sling based application | |
input { | |
stdin { | |
type => "stdin-type" | |
} | |
file { | |
type => "cq-ci-author" | |
path => ["/path/crx-quickstart/logs/error.log"] | |
debug => false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This scripts provide details related to various caches used in Oak MongoMK module while running within Sling OSGi Container | |
The script is based on (JAMM) [1]. Steps are provided below | |
1. Download JAMM from Maven | |
$wget http://repo1.maven.org/maven2/com/github/stephenc/jamm/0.2.5/jamm-0.2.5.jar | |
2. Modify the Quickstart launching by specifying agent and bootdelegation list | |
$java -javaagent:<path to>/jamm.jar -Dorg.apache.sling.launcher.bootdelegation=,org.github.jamm -jar | |
3. Deploy the Script Console jar | |
$wget http://repo1.maven.org/maven2/org/apache/sling/org.apache.sling.scripting.console/1.0.0/org.apache.sling.scripting.console-1.0.0.jar | |
$wget http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.1.3/groovy-all-2.1.3.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/path/to/tabs.sh | |
load-dev(){ | |
#Create sessi data format '<Tab Name/Title> <Profile Name> <Working Directory>' | |
local sessions=( | |
oak Shell 'clear; cd ~/git/apache/oak' | |
sling Shell 'clear; cd ~/git/apache/sling' | |
felix Shell 'clear; cd ~/git/apache/felix' | |
) | |
start_sessions sessions[@] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Utility class that diffs 2 Intellij test runs and performs diff between the two runs. It works | |
* on xml report created by Intellij as mentioned in http://www.jetbrains.com/idea/webhelp/export-test-results.html | |
* | |
* How to run | |
* | |
* - Run first test suite and export the result as xml | |
* - Run first test suite again post change and export the result as xml | |
* | |
* Run the script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 #Bundle Id | |
slinginstall:/path/to/foo.jar #Bundle original location | |
32 #Persistence State (INSTALLED, RESOLVED etc) | |
1 #Start level | |
1358768421064 #Last modified | |
0 #Refresh Count |