This file contains hidden or 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
| #!/usr/bin/env bash | |
| # export OAUTH_INTEGRATION_ENABLED_ENVIRONMENTS=true | |
| SCRIPT_DIR=$(dirname "$(realpath "$0")") | |
| DIRECTORY=$SCRIPT_DIR/crx-quickstart | |
| ADMIN_PASSWORD="admin" | |
| LOG_FILE="$DIRECTORY/logs/error.log" | |
| INSTALL_DIR="$DIRECTORY/install" | |
| INSTALL_DIR_FROM="$SCRIPT_DIR/install" |
This file contains hidden or 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
| #!/bin/bash | |
| # ============================================================================ | |
| # AEM RDE Deployment Script | |
| # ============================================================================ | |
| # This script automates the deployment of AEM packages to a Rapid Development | |
| # Environment (RDE) using the Adobe I/O CLI. | |
| # | |
| # Usage: | |
| # ./deploy-to-rde.sh [options] |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Define the AEM role (set this to "author" or "publish") | |
| aem_role="author" | |
| # Default behavior for repository deletion (unset when no parameter is given) | |
| delete_repo="" | |
| # Check for parameter input | |
| if [ $# -gt 0 ]; then |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # export OAUTH_INTEGRATION_ENABLED_ENVIRONMENTS=true | |
| SCRIPT_DIR=$(dirname "$(realpath "$0")") | |
| DIRECTORY=$SCRIPT_DIR/crx-quickstart | |
| ADMIN_PASSWORD="admin" | |
| cd "$SCRIPT_DIR" |
This file contains hidden or 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
| #!/bin/bash | |
| LOG_FILE="/var/log/jfr_recorder.log" | |
| choose_profile() { | |
| echo "Select a JFR profile or custom settings file:" | |
| echo "1) profile - Captures detailed performance metrics, useful for profiling applications." | |
| echo "2) default - Standard JFR configuration, collects essential runtime data." | |
| # Detect custom .jfc files in the script directory |
This file contains hidden or 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
| # AEM Load Test Configuration | |
| # URL file containing multiple target URLs (one per line) | |
| URL_FILE="urls.txt" | |
| # Optional authentication (leave empty if not needed) | |
| USERNAME="" # AEM username (if authentication required) | |
| PASSWORD="" | |
| CONCURRENT_REQUESTS=5 # Number of parallel requests |
This file contains hidden or 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
| #!/bin/bash | |
| # Function to display help message | |
| show_help() { | |
| echo "Usage: $0 [REMOTE_USER REMOTE_HOST REMOTE_DIR]" | |
| echo | |
| echo "Arguments:" | |
| echo " REMOTE_USER SSH username for the remote connection" | |
| echo " REMOTE_HOST Remote host (IP or domain)" | |
| echo " REMOTE_DIR Directory on the remote server" |
This file contains hidden or 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
| import requests | |
| import json | |
| def get_folder_structure(token, base_url, debug_mode=False, path="/api/assets"): | |
| if debug_mode: | |
| print(f"Fetching folder structure from {base_url}{path}") | |
| else: | |
| print(".", end="", flush=True) | |
| headers = { |
This file contains hidden or 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
| ## https://jwstanly.com/blog/article/Port+Forwarding+WSL+2+to+Your+LAN/ | |
| ## Execute with: powershell.exe -File "C:\Users\wunsch\Bridge-WslPorts.ps1" | |
| Start-Transcript -Path "C:\Users\wunsch\Bridge-WslPorts.log" -Append | |
| $ports = @(80, 443, 1234, 3000, 4502, 4503, 4326, 4327, 5000, 10000, 25565, 25575); | |
| $wslAddress = bash.exe -c "ifconfig eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'" | |
| if ($wslAddress -match '^(\d{1,3}\.){3}\d{1,3}$') { |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| import requests | |
| import json | |
| def load_config(filename="config.json"): | |
| try: | |
| with open(filename, 'r') as file: | |
| config = json.load(file) | |
| return config |
NewerOlder