Skip to content

Instantly share code, notes, and snippets.

View jecc1982's full-sized avatar

Jerry Chang jecc1982

View GitHub Profile
@jecc1982
jecc1982 / gist:db3ce9acdc4e356f6a2a2f9f08cb3574
Created October 25, 2019 00:04
Remove local branches where remote are gone
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
# Create new DynamoDb Local table for testing
aws dynamodb create-table --endpoint-url http://localhost:8000 \
--table-name SimulationJobs \
--attribute-definitions \
AttributeName=PK,AttributeType=S \
AttributeName=SK,AttributeType=S \
--key-schema \
AttributeName=PK,KeyType=HASH \
AttributeName=SK,KeyType=RANGE \
--billing-mode PAY_PER_REQUEST \