Skip to content

Instantly share code, notes, and snippets.

View danon's full-sized avatar

Daniel Wilkowski danon

View GitHub Profile
@nateyolles
nateyolles / curlPackageFilterRules.sh
Last active October 2, 2024 12:24
AEM/CQ cURL: Adding include/exclude rules to package filters
# Adding include/exclude rules to CQ/AEM package filters through cURL.
# Through a simple search, you will find numerous lists of CQ/AEM cURL commands.
# However, I haven't seen an example of adding rules to package filters. The
# JSON "rules" key takes an array value. You can leave the array empty if you
# don't need to include any rules. The array is of JSON objects with a
# "modifier" key and value of "include" or "exclude", and a "pattern" key with
# your path or regular expression as the value.
# create package
@atomicpages
atomicpages / class.log.php
Created October 15, 2014 20:31
A really simple logging class
<?php
/**
* Class Log
* A really simple logging class that writes flat data to a file.
* @author Dennis Thompson
* @license MIT
* @version 1.0
* @copyright AtomicPages LLC 2014
*/