Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mitcharoo on github.
  • I am mitcharoo (https://keybase.io/mitcharoo) on keybase.
  • I have a public key whose fingerprint is 404B 4BDC F7DE 8D69 B95D F386 3C4C B358 3D16 1F83

To claim this, I am signing this object:

@mitcharoo
mitcharoo / verify-spf-dmarc.sh
Created June 14, 2022 04:58
Bash script to quickly verify SPF and DMARC records for a list of domains
#!/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*" &&
@mitcharoo
mitcharoo / nginx.conf
Created April 7, 2020 15:58 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mitcharoo
mitcharoo / gitlab-ci.yml
Created March 30, 2020 21:07
Gitlab deploy to Elastic Beanstalk
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