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 java.io.IOException; | |
import org.apache.commons.httpclient.Header; | |
import org.apache.commons.httpclient.HttpClient; | |
import org.apache.commons.httpclient.HttpException; | |
import org.apache.commons.httpclient.methods.GetMethod; | |
import org.apache.commons.httpclient.methods.PostMethod; | |
public class Test { |
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
/** | |
* | |
* In this sample Geb script, we are going to add a video component to a page in AEM | |
* using the context menu. | |
* | |
*/ | |
@Grapes([ | |
@Grab("org.codehaus.geb:geb-core:0.7.2"), |
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 javax.management.remote.JMXServiceURL; | |
import javax.management.remote.JMXConnectorFactory; | |
import javax.management.ObjectName; | |
// assuming that CQ is started with -Dcom.sun.management.jmxremote.port=9000 | |
def jmxUrl = "service:jmx:rmi:///jndi/rmi://localhost:9000/jmxrmi"; | |
def serviceUrl = new JMXServiceURL(jmxUrl); | |
def jmxConnector = JMXConnectorFactory.connect(serviceUrl); | |
def mbeanConn = jmxConnector.getMBeanServerConnection(); |
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 javax.management.remote.JMXServiceURL; | |
import javax.management.remote.JMXConnectorFactory; | |
import javax.management.ObjectName; | |
// assuming that CQ is started with -Dcom.sun.management.jmxremote.port=9000 | |
def jmxUrl = "service:jmx:rmi:///jndi/rmi://localhost:9000/jmxrmi"; | |
def serviceUrl = new JMXServiceURL(jmxUrl); | |
def jmxConnector = JMXConnectorFactory.connect(serviceUrl); | |
def mbeanConn = jmxConnector.getMBeanServerConnection(); |
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
First Time: | |
$ brew tap justinedelson/homebrew-filevault | |
$ brew install filevault | |
Every Other Time: | |
$ brew update | |
$ brew upgrade filevault |
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
<profiles> | |
<profile> | |
<id>autoInstallPackageAuthor</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.day.jcr.vault</groupId> | |
<artifactId>content-package-maven-plugin</artifactId> | |
<executions> | |
<execution> |
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
<?xml version="1.0"?> | |
<!-- | |
Licensed to the Sakai Foundation (SF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The SF 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
[ | |
{ | |
"adaptables":"org.apache.sling.api.resource.Resource", | |
"adapters":[ | |
"javax.jcr.Node", | |
"javax.jcr.Item", | |
"java.net.URL", | |
"java.util.Map", | |
"org.apache.sling.api.resource.ValueMap" | |
], |
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 | |
* |