Skip to content

Instantly share code, notes, and snippets.

Frieder Heugel frieder

  • Basel, Switzerland
Block or report user

Report or block frieder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@frieder
frieder / examples.sql2
Created Sep 17, 2018
JCR-SQL2 examples (AEM6)
View examples.sql2
Find all videos below a specific DAM path
-----------------------------------------
SELECT * FROM [dam:Asset] AS asset
WHERE ISDESCENDANTNODE(asset, '/content/dam')
AND asset.[jcr:content/metadata/dc:format] LIKE 'video/%'
Find all pages with a specific template and an alias
----------------------------------------------------
@frieder
frieder / gist:42af600026d089b3871e2aab4fad183c
Created Oct 8, 2017
Remove systemd restriction from Proxmox DAB
View gist:42af600026d089b3871e2aab4fad183c
This snippet is a response to https://bitbucket.org/flybyte/dab-templates to enable Proxmox DAB to
create Debian LXC templates that use systemd as the default init system. Following are the instructions
on what to do to get DAB creating a systemd LXC Debian template.
===
# Make a copy of DAB.pm
cp /usr/share/perl5/PVE/DAB.pm /usr/share/perl5/PVE/DAB.pm.bak
---
View gist:9f86ad859b98431c0b67b6458b3577b7
This snippet shows how to create a LXC template by using debootstrap. Done. This is a response to https://bitbucket.org/flybyte/dab-templates which does the same but has the limitation that it will result in a system that uses sysvinit while with this approach the system will use systemd.
===
mkdir -p /opt/debian && cd /opt/debian
---
debootstrap --arch amd64 --variant=minbase jessie /opt/debian/root http://ftp.ch.debian.org/debian
@frieder
frieder / aem63_systemd.txt
Last active Oct 2, 2019
AEM 6.x systemd start script
View aem63_systemd.txt
The following start script has been tested with SLES 12 SP2, AEM 6.3 and Java 8u161.
-------------------------------------------------------------------------------------------------------------
cat << 'EOF' > /etc/systemd/system/aem.service
[Unit]
Description=Adobe Experience Manager
After=network.target
[Service]
Type=forking
@frieder
frieder / aem6_deps.txt
Last active Jan 2, 2018
AEM6 Dependencies
View aem6_deps.txt
To include dependencies for Adobe Experience Manager 6 (AEM6) one can use one of the following
approaches.
a) Use a single dependency that will include other dependencies through transitive dependencies.
Please note that unlike the 2nd approach this approach will not include all dependencies.
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-api</artifactId>
<version>6.0.0.1</version>
View gist:11316484
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
@frieder
frieder / cq5 startup script
Last active May 15, 2016
Startup script for Adobe CQ 5.6, tested on CentOS 6.5
View cq5 startup script
+-----------------------+
| /etc/rc.d/init.d/cq5 |
+-----------------------+
#!/bin/bash
#
# cq5 Startup script for Adobe AEM/CQ5
#
# chkconfig: 345 80 20
# description: Startup script for Adobe AEM/CQ5
View wildfly-install.sh
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :20140312
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.0.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
You can’t perform that action at this time.