This file contains 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
alias cd..="cd .." | |
alias ls="ls -l" | |
alias dir="ls -l" | |
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" |
This file contains 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
To execute a filtered export: | |
vlt co http://localhost:4502/crx/-/jcr:root foundation | |
Create a filter.xml before at META-INF/vault/filter.xml. | |
<?xml version="1.0" encoding="UTF-8"?> | |
<workspaceFilter version="1.0"> | |
<filter root="/etc/designs/geometrixx" /> | |
<filter root="/libs/foundation/components"/> | |
</workspaceFilter> |
This file contains 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
username=$(grep -o '<username>.*</username>' ~/.m2/settings.xml | sed 's/\(<username>\)//g' | sed 's/\(<\/username>\)//g') | |
password=$(grep -o '<password>.*</password>' ~/.m2/settings.xml | sed 's/\(<password>\)//g' | sed 's/\(<\/password>\)//g') |
This file contains 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
#!/bin/bash | |
find ./ -name ".vlt" | xargs rm -Rf |
This file contains 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
#!/bin/bash | |
#################################### | |
# Exports jdk environment exports | |
# call: | |
# set-jdk <jdk-version> e.g. set-jdk 1.8 | |
# or to set default: | |
# set-jdk | |
#################################### |
This file contains 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
#!/bin/bash | |
#################################### | |
# Prepares dev environment settings | |
# call: | |
# set-dev-env <environment> | |
# or for help: | |
# set-dev-env | |
#################################### |
This file contains 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
#!/bin/bash | |
# first argument: file | |
# second argument: searchstring | |
# | |
find "$1" -name "*.jar" -exec sh -c 'jar -tf {}|grep -H --label {} '$2'' \; |
This file contains 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
package net.thartm.someservice.jobs; | |
import static org.mockito.Matchers.any; | |
import static org.mockito.Mockito.never; | |
import static org.mockito.Mockito.times; | |
import static org.mockito.Mockito.verify; | |
import static org.mockito.Mockito.when; | |
import java.util.List; |
This file contains 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
Nodes with a certain attribute | |
//element(*)[jcr:content/@includePageInTools='true'] | |
News without PubDate | |
//*[@cq:template="/apps/sampleproject/templates/newspage" and not(@pubdate)] | |
Pages without UUID | |
/jcr:root/content//element(*,cq:PageContent)[not(@uuid)] | |
Find Pages with component |
This file contains 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 org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeStore | |
import org.apache.jackrabbit.oak.commons.PathUtils | |
def details(def session, String path) { | |
println "Details about children of ${path}" | |
NodeStore ns = session.store | |
def nb = ns.root.builder() |
OlderNewer