I hereby claim:
- I am bushong1 on github.
- I am charlesbushong (https://keybase.io/charlesbushong) on keybase.
- I have a public key whose fingerprint is F770 07AF 538B 48F9 BF1B 4672 6A1E 5661 6626 23F0
To claim this, I am signing this object:
| function aws-rm-ami-snap() { | |
| if [[ ${1} == ami-* ]]; then | |
| AMI_ID=${1} | |
| SNAPSHOT_IDS=$(aws ec2 describe-images --filters Name=image-id,Values=${1} | jq '.Images[].BlockDeviceMappings[].Ebs.SnapshotId' | sed 's/"//g') | |
| aws ec2 deregister-image --image-id ${AMI_ID} | |
| for snapshot_id in ${SNAPSHOT_IDS}; do | |
| aws ec2 delete-snapshot --snapshot-id ${snapshot_id} | |
| done | |
| else | |
| echo "ERROR: Require \$1 to be an AMI ID, starting with 'ami-'" |
I hereby claim:
To claim this, I am signing this object:
| asset 'bootstrap-sass-official' | |
| asset 'angular', '~> 1.4' | |
| #asset 'angular-mocks' |
| #add new dependency | |
| cd github-mirror | |
| git submodule add <url/ssh> <namespace>/<project-name>/<branch> | |
| cd <namespace>/<project-name>/<branch> | |
| git checkout <branch> | |
| cd .. | |
| git add <branch> | |
| git commit -m "Adding <namespace>/<project-name>/<branch>" | |
| cd <branch> |
| #Add to .bashrc | |
| #Usage: npmdeps <package>[@<version>] | |
| function npmdeps { | |
| regex="^[- |]*$" | |
| regex_space="^ *$" | |
| regex_github="github\.com" | |
| if [[ "$1" =~ $regex ]]; then | |
| return | |
| else | |
| DEPS=`npm info $1 dependencies|perl -0777 -pe 's/^.*{//gs'|perl -0777 -pe 's/}.*$//gs'| sed "s/[\{\}' ]//g" | sed 's/, \?/\n/g' | sed "s/:/@/g"` |
| [alias] | |
| lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
| lg = !"git lg1" | |
| [color] | |
| ui = auto |