Skip to content

Instantly share code, notes, and snippets.

View josephrignanese's full-sized avatar

Joseph Rignanese josephrignanese

  • Sydney, NSW, Australia
View GitHub Profile
@josephrignanese
josephrignanese / add_users_to_aemaacs_products.py
Last active July 12, 2022 01:00
Add users to AEMaaCS Program using umapi_client
#!/usr/bin/env python3
# This script uses the Adobe umapi_client to create/assign Adobe ID users to all product profiles related to
# a program, as well as some common groups for cloud manager.
#
# Before using this script you need to install the dependencies and create the Adobe IO integration as documented at:
# https://adobe-apiplatform.github.io/umapi-client.py/
#
# For me the python dependencies were:
# python3 -m pip install umapi-client pyyaml
@josephrignanese
josephrignanese / search-results-to-csv.sh
Created October 7, 2021 23:42
AEM Query Builder JSON to CSV using jq
cat search-result.json | jq -r '.hits | (map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' > search-results.csv
@josephrignanese
josephrignanese / aem-get-osgi-component-properties.sh
Last active October 8, 2018 00:40
Script to retrieve a filtered set of OSGi component properties from an AEM instance (local or remote). Filtered by component name. Requires curl and jq.
#!/bin/bash
print_usage() {
echo "Usage: $0 -P <component prefix (e.g. com.mycompany)> [-P ...] [-u username] [-p password] [-U url]" >&2
}
OPT_PREFIXES=()
while getopts ":u:p:U:P:" opt; do
case $opt in

Keybase proof

I hereby claim:

  • I am josephrignanese on github.
  • I am josephrignanese (https://keybase.io/josephrignanese) on keybase.
  • I have a public key ASD1-Ylw3G-LnYjFb4_KdbqS4HGIvvVMzB6h-lylCi0t1wo

To claim this, I am signing this object: