I hereby claim:
- I am hostmaster on github.
- I am hostmaster (https://keybase.io/hostmaster) on keybase.
- I have a public key ASB5pWJf3Qws6exTwpuyHRSwczPADj4INmuJHFrJLm_b_Qo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # ORIGIN: http://apple.stackexchange.com/a/231020 | |
| (set -x; brew upgrade;) | |
| (set -x; brew cleanup;) | |
| (set -x; brew cask cleanup;) | |
| (set -x; brew prune;) | |
| (set -x; brew doctor;) | |
| red=$(tput setaf 1) | |
| green=$(tput setaf 2) |
| for f in /Applications/Docker.app/Contents/Resources//etc/*.zsh-completion; | |
| do | |
| ln -sf "$f" "$HOME/.zgen/_${$(basename $f)%.zsh-completion}" | |
| done |
| aws s3 sync s3://oldbucket s3://newbucket --source-region us-west-1 --region us-west-2 |
| # Modify this file accordingly for your specific requirement. | |
| # http://www.thegeekstuff.com | |
| # 1. Delete all existing rules | |
| iptables -F | |
| # 2. Set default chain policies | |
| iptables -P INPUT DROP | |
| iptables -P FORWARD DROP | |
| iptables -P OUTPUT DROP |
| #!/bin/bash | |
| URL=http://S3_BUCKET.s3.amazonaws.com/FILENAME | |
| filename=FILENAME | |
| S3_MD5=$(curl -s -I -L $URL | awk '/ETag/ { gsub(/"|\r/,"",$2); print $2 }') | |
| MD5="$(md5 -q $filename 2>/dev/null || :)" |
I hereby claim:
To claim this, I am signing this object:
| case $2 in | |
| stop|force-stop|status) | |
| exit | |
| ;; | |
| rotate) | |
| exit | |
| ;; | |
| *) | |
| exit 101 | |
| ;; |
| Host * | |
| ControlMaster auto | |
| ControlPath ~/.ssh/_%C |
| aws ec2 stop-instances --instance-ids i-ID | |
| aws ec2 detach-volume --volume-id vol-ID | |
| aws ec2 create-snapshot --volume-id vol-ID | |
| while : ; do aws ec2 describe-snapshots --snapshot-ids snap-ID; sleep 5; done | |
| aws ec2 create-volume --snapshot-id snap-ID --availability-zone ${AZ} --size ${SIZE} | |
| aws ec2 attach-volume --volume-id vol-NEWID --instance-id i-ID --device /dev/sda1 | |
| aws ec2 start-instances --instance-id i-ID | |
| aws ec2 describe-instance-status --instance-id i-ID |
| 46.51.128.0/18 | |
| 46.51.192.0/20 | |
| 46.137.0.0/17 | |
| 46.137.128.0/18 | |
| 52.16.0.0/15 | |
| 52.18.0.0/15 | |
| 52.30.0.0/15 | |
| 52.48.0.0/14 | |
| 52.95.244.0/24 | |
| 52.95.255.64/28 |