View sh.txt
cat > openssl.cnf <<-EOF
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
CN = *.dev
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
View JcrQueryLibrary.md

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

View intercept-xhr.js
// Taken from https://stackoverflow.com/a/27363569
// Allows for the object to be interrogated
((() => {
const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
console.log('request started!');
this.addEventListener('load', function() {
console.log('request completed!');
console.log(this.readyState); //will always be 4 (ajax is completed successfully)
View tar.sh
# Compress directory into 500MB archives
tar cvzf - dir/ | split -b 500000000 - output.tar.gz.
# Extract multi-archive tar.gz files
cat output.tar.gz.* | tar xzvf -
View welcome-screen.md

Modules

Module Path
Websites /libs/wcm/core/content/siteadmin
Digital Assets /libs/wcm/core/content/damadmin
Communities /libs/collab/core/content/admin
Campaigns /libs/mcm/content/admin
Inbox /libs/cq/workflow/content/inbox
Users /libs/cq/security/content/admin
View keybase.md

Keybase proof

I hereby claim:

  • I am sergeimuller on github.
  • I am sergeimuller (https://keybase.io/sergeimuller) on keybase.
  • I have a public key whose fingerprint is B0C7 DE13 3C3C D056 A6AC 49E7 9188 8FF9 A362 CC37

To claim this, I am signing this object:

View font-face.css
/* Sample @font-face declaration for EOT & TTF/OTF recommended by Paul Irish */
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot?') format('eot'),
url('GraublauWeb.woff') format('woff'),
url('GraublauWeb.ttf') format('truetype');
}
/* Read the full article: http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/ */
View gist:3121577
Root directory 0755
wp-admin 0755
wp-content 0755
wp-includes 0755
.htaccess 0640
readme.html 0400
wp-config.php 0644
wp-admin/index.php 0644
wp-admin/.htaccess 0640
View gist:2916721
Assuming the base URL to be this (need to edit to fit yours):
http://cqauthor1.company.com:4502
SEARCH
Search UI:
/crx/explorer/ui/search.jsp?Path=&Query=
View gist:2916697
Note 1: The following CQ curl commands assumes a admin:admin username and password.
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command.
Example: -F"":operation=delete""
Note 3: Quotes around name of package (or name of zip file, or jar) should be included.
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console)
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle"
Install a bundle
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F