Skip to content

Instantly share code, notes, and snippets.

View neozilon's full-sized avatar

Federico Arriola neozilon

View GitHub Profile
path=crx-quickstart/repository/datastore
minRecordLength=4096
path=crx-quickstart/repository/datastore
minRecordLength=4096
@neozilon
neozilon / JcrQueryLibrary.md
Created October 21, 2020 04:49 — forked from floriankraft/JcrQueryLibrary.md
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

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

Each YouTube video has 4 generated images. They are predictably formatted as follows:
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is:
http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg
---
write-files:
- path: /etc/consul/consul.json
permissions: '0644'
content: |
{
"data_dir": "/consul/data",
"log_level": "INFO",
"server": true,
"disable_update_check": true,
@neozilon
neozilon / 0_reuse_code.js
Created December 15, 2015 20:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@neozilon
neozilon / osx_php_homebrew.setup.md
Last active February 16, 2016 17:46 — forked from niepi/osx_php_homebrew.setup.md
Install PHP OSX

install php

with mysql intl support

$ brew install php --with-apache --with-mysql --with-intl

set php timezone in php ini

File: /usr/local/etc/php/5.6/php.ini