SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"All pages below content path
| #!/bin/sh | |
| # UNINSTALL PACKAGES | |
| curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=uninstall | |
| sleep 2 | |
| curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=delete | |
| sleep 2 | |
| curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/aemfd/cq-geometrixx-gov-pkg-3.0.6.zip?cmd=uninstall | |
| sleep 2 |
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"All pages below content path
| // Implements multipart/form-data POST in C# http://www.ietf.org/rfc/rfc2388.txt | |
| // http://www.briangrinstead.com/blog/multipart-form-post-in-c | |
| public static class FormUpload | |
| { | |
| private static readonly Encoding encoding = Encoding.UTF8; | |
| public static HttpWebResponse MultipartFormDataPost(string postUrl, string userAgent, Dictionary<string, object> postParameters) | |
| { | |
| string formDataBoundary = String.Format("----------{0:N}", Guid.NewGuid()); | |
| string contentType = "multipart/form-data; boundary=" + formDataBoundary; |