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
#!/bin/bash | |
## Usage: ./restart.sh --env staging | |
# Check if the --env argument is provided | |
if [ "$#" -ne 2 ] || [ "$1" != "--env" ]; then | |
echo "Usage: $0 --env <environment>" | |
exit 1 | |
fi |
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
#!/bin/bash | |
JAR_FILE=$1 | |
EXTRACT_DIR="extracted" | |
# Ensure the extracted directory exists | |
mkdir -p $EXTRACT_DIR | |
# Extract the jar file | |
unzip -q "$JAR_FILE" -d $EXTRACT_DIR |
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
// Function to find and click links in batches based on custom selectors | |
function batchClickLinks(options = {}) { | |
const { | |
linkSelector = 'a[href*="https://download.net/file"]', // Updated default selector | |
rowSelector = 'body', | |
batchSize = 5, | |
delay = 5000, | |
excludeNumbers = [] | |
} = options; |
OlderNewer