This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following is a fail2ban configuration to identify failed login | |
attempts to Nexus 3 OSS via an nginx reverse proxy. | |
------------------------------------------------------------------------------ | |
/etc/fail2ban/jail.d/nexus.conf | |
------------------------------------------------------------------------------ | |
[nexus] | |
enabled = true | |
port = https | |
filter = nexus-login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
---------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |