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
| #!/usr/bin/ruby | |
| require 'openssl' | |
| if ARGV.length != 2 | |
| puts "Usage:" | |
| puts "./cq_password.rb HASHED_PASSWORD PLAIN_PASSWORD" | |
| abort | |
| end |
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.ByteArrayInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Calendar; | |
| import javax.jcr.Node; | |
| import javax.jcr.Property; | |
| import javax.jcr.RepositoryException; | |
| import javax.jcr.Session; | |
| import javax.jcr.ValueFactory; |
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
| Link to the garbage collector configuration: | |
| http://localhost:4502/system/console/configMgr/com.day.crx.sling.server.impl.jmx.GarbageCollectionConfig |
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
| curl -u <UID>:<PASSWORD> -X POST http://<HOST>:<PORT>/system/console/jmx/com.adobe.granite:type=Repository/a/SessionTracker?value=true |
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 org.apache.felix.scr.annotations.sling.SlingServlet; | |
| import org.apache.sling.api.SlingHttpServletRequest; | |
| import org.apache.sling.api.SlingHttpServletResponse; | |
| import org.apache.sling.api.resource.Resource; | |
| import org.apache.sling.api.resource.ResourceUtil; | |
| import org.apache.sling.api.servlets.SlingSafeMethodsServlet; | |
| @SlingServlet(paths = "/bin/permissioncheck/html", generateComponent = true, generateService = true) | |
| public class AuthCheckerServlet extends SlingSafeMethodsServlet { | |
| public void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) { |
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.util.List; | |
| import org.apache.felix.scr.annotations.Component; | |
| import org.apache.felix.scr.annotations.Service; | |
| import org.apache.sling.api.SlingHttpServletRequest; | |
| import org.apache.sling.servlets.post.Modification; | |
| import org.apache.sling.servlets.post.SlingPostProcessor; | |
| @Component(metatype = false, immediate = true) |
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 org.apache.felix.scr.annotations.Component; | |
| import org.apache.felix.scr.annotations.Service; | |
| import com.day.cq.replication.Preprocessor; | |
| import com.day.cq.replication.ReplicationAction; | |
| import com.day.cq.replication.ReplicationException; | |
| import com.day.cq.replication.ReplicationOptions; | |
| @Component(metatype = false, immediate = true) | |
| @Service |
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 org.apache.felix.scr.annotations.Component; | |
| import org.apache.felix.scr.annotations.Properties; | |
| import org.apache.felix.scr.annotations.Property; | |
| import org.apache.felix.scr.annotations.Service; | |
| import org.apache.sling.api.SlingConstants; | |
| import org.apache.sling.event.EventUtil; | |
| import org.apache.sling.event.jobs.JobProcessor; | |
| import org.apache.sling.event.jobs.JobUtil; | |
| import org.osgi.service.event.Event; | |
| import org.osgi.service.event.EventConstants; |