Entries Published On June, 2023
coTURN installation script
#!/bin/bash # Check if user is running as root if [[ $EUID -ne 0 ]]; then echo “This script must be run as root.” exit 1 fi # Function to install Coturn install_coturn() { apt-get update apt-get install -y coturn truncate -s 0 /etc/turnserver.conf } # Function to generate random username generate_credentials() { username=$(tr -dc …
How to backup/restore Route53 records by using aws-cli
# To backup records aws route53 list-resource-record-sets –hosted-zone-id YOUR_HOSTED_ZONE_ID > route53_backup.json # To restore records aws route53 change-resource-record-sets –hosted-zone-id YOUR_HOSTED_ZONE_ID –change-batch file://route53_backup.json