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 | |
## Allows for creation of "Basic" DNS records in a Route53 hosted zone | |
function main() { | |
zone_name=$1 | |
record_name=$2 | |
record_value=$3 | |
[[ -z $record_value ]] && usage && exit 1 |
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 | |
# | |
# Run this script once per minute | |
# | |
# * * * * * /path/to/whois-watch.sh google.com apple.com >> /var/log/whois-watch.log 2>&1 | |
# update username in mail command | |
# update sed command depending on server return 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 | |
wget https://raw.githubusercontent.com/PHPMailer/PHPMailer/master/class.phpmailer.php | |
for file in $(find /var/www/ -name 'class.phpmailer.php' -print) ; do | |
echo $file | |
cp $file $file.bak | |
cp ./class.phpmailer.php $file | |
# dir=$(dirname $file) | |
# chown $(stat -c '%U' $dir):$(stat -c '%G' $dir) $file |