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 | |
# Replace with your Discord webhook URL | |
DISCORD_WEBHOOK_URL="<DISCORD_WEBHOOK_URL>" | |
# Fixed values | |
USERNAME="qbitorrent-pi4" | |
# AVATAR_URL="https://example.com/avatar.png" | |
MENTION_USER_ID="<MENTION_USER_ID>" |
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
$ export $(printf "AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s AWS_SESSION_TOKEN=%s" \ | |
$(aws sts assume-role \ | |
--role-arn arn:aws:iam::<aws-account-id>:role/<role-name> \ | |
--role-session-name <Test-Session-Name> \ | |
--query "Credentials.[AccessKeyId,SecretAccessKey,SessionToken]" \ | |
--output text)) |
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 | |
# Define variables | |
REPO_URL="[email protected]:<org>/<repo-name>.git" | |
PRIVATE_KEY_FILE="<>" | |
HOST_REPO_PATH="./<local-dir-name>" | |
DOCKER_IMAGE="ubuntu" | |
GIT_USER_NAME="<>" | |
GIT_USER_EMAIL="<>" |
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
apiVersion: 2019-12-01 | |
location: <your_location> # Replace with your Azure region, e.g., eastus | |
name: <your_container_group_name> # Replace with your container group name | |
properties: | |
containers: | |
- name: <> | |
properties: | |
image: <> | |
resources: | |
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 | |
if [ "$1" == "" ]; then | |
echo "Usage: $(basename "$0") <MFA-TOKEN>" | |
exit 1 | |
fi | |
session_duration=129600 # 36 hours | |
mfa_device_code=$(aws iam list-mfa-devices | jq -r .MFADevices[0].SerialNumber) | |
if [ -z "$mfa_device_code" ]; then |
OlderNewer