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 | |
| export MY_32CIDR=$(curl -s v4.ifconfig.co)/32 | |
| aws ec2 authorize-security-group-ingress --group-id sg-{yoursgid} --protocol tcp --port 22 --cidr $MY_32CIDR |
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
| pip3 install https://github.com/boto/botocore/zipball/v2#egg=botocore --upgrade | |
| pip3 install -r requirements.txt | |
| pip3 install . |
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
| # pre-reqs: | |
| # ghostscript -> brew install ghostscript | |
| function compresspdf { | |
| INPUT_FILE=$1 | |
| FILE_EXTENSION="${INPUT_FILE##*.}" | |
| FILE_NAME="${INPUT_FILE%.*}" | |
| OUTPUT_FILE="$FILE_NAME-compressed.$FILE_EXTENSION" | |
| gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dColorImageResolution=150 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$OUTPUT_FILE $INPUT_FILE | |
| } |
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/sh | |
| # id: check_unattached_EIPs.sh | |
| # author: nicolas david - [email protected] | |
| # | |
| ## version history: | |
| # ---------------------------------------------------------------------------- | |
| # v1.0 nicolas@ Initial Version | |
| # | |
| # ---------------------------------------------------------------------------- |
OlderNewer