- Python 3
- Pip 3
$ brew install python3
/* | |
For very big spaces, we can create chunks of the export, and import them separately. | |
To make it work, we have to keep a specific order. | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); | |
/* the order of types must be kept */ | |
const types = [ |
// knockout 3.5.0 | |
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
@font-face { | |
font-family: 'Open Sans'; | |
font-weight: 300; | |
font-style: normal; | |
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAEdoABEAAAAAa9QAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABgAAAABYAAAAWABAA3UdQT1MAAAGYAAAAEAAAABAAGQAMR1NVQgAAAagAAABZAAAAdN3O3ptPUy8yAAACBAAAAFsAAABgfcQdpmNtYXAAAAJgAAAAlgAAAMyvDbOdY3Z0IAAAAvgAAABdAAAAqhLrE6lmcGdtAAADWAAABJoAAAe0fmG2EWdhc3AAAAf0AAAAEAAAABAAHgAjZ2x5ZgAACAQAADelAABVvDBYzPJoZWFkAAA/rAAAADYAAAA2An9GxGhoZWEAAD/kAAAAHwAAACQNhAZaaG10eAAAQAQAAAIAAAADbJK6XfZsb2NhAABCBAAAAboAAAG8czSHHm1heHAAAEPAAAAAIAAAACACnQH4bmFtZQAAQ+AAAADqAAABvCJjP0pwb3N0AABEzAAAAYQAAAIomA5qEXByZXAAAEZQAAABFQAAATrejqJdAAEAAAAMAAAAAAAAAAIAAQAAANwAAQAAAAEAAAAKAAwADgAAAAAAAHjaHceBBsJAGADg778uTgIESAiEAPQMx9g7DCQm0JM22x5n48DnEzi5eYpx+H0VGbZNIMbPe1DQJssIRXg1j84uru4eFgdVb252Vkk1SXp/SSeEugPT/Q0cAAAAeNpjYGZpZ9RhYGVgYJ3FaszAwCgPoZkvMqQxvuFgYuJmZmNmZWFiYmlgYFBnYGBwZoACQ8dgZwYHBgUlITb5fyIMLRy9TBEKDIzzQXIs9qzbgJQCAzMAMHoL+wB42pXKMQgBcRTA4d//GFkwSNLrksliZDY4I3vZM5rtRVnsmZQ6ZS9hsVDMkl4U+6quR1Jm3/ |
{ | |
"presets":["es2015"], | |
"plugins": [ | |
"transform-es3-member-expression-literals", | |
"transform-es3-property-literals" | |
] | |
} |
package com.nateyolles.sling; | |
import org.apache.felix.scr.annotations.Reference; | |
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.servlets.SlingSafeMethodsServlet; | |
import org.apache.sling.engine.SlingRequestProcessor; |
#Some discussions on logging from docker: Using logstash Using Papertrail
A lot of this boils down to whether you want a single or multi-process (systemd, supervisord etc.) container...
import javax.jcr.* | |
import org.apache.sling.api.resource.* | |
def ROOT_PATH = '/content/geometrixx' | |
def extractPaths(p) { | |
if (p instanceof Property && p.multiple) { | |
p.values.collect { extractPaths(it) }.flatten() | |
} else { | |
p.string.findAll(/\/content\/[^"]+/) |
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