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 | |
# Quickly verify SPF and DMARC records for a list of domains | |
# Load domain names in list_domains and let 'er rip | |
list_domains="" | |
for domain in $list_domains | |
do | |
dig -t txt "$domain" | grep "v=spf1*" && |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
development: | |
type: deploy | |
environment: production | |
script: | |
- mkdir ~/.aws/ | |
- touch ~/.aws/credentials | |
- printf "[eb-cli]\naws_access_key_id = %s\naws_secret_access_key = %s\n" "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY" >> ~/.aws/credentials | |
- touch ~/.aws/config | |
- printf "[profile eb-cli]\nregion=ap-southeast-1\noutput=json" >> ~/.aws/config | |
- eb deploy funwitheb-production |