This file contains 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
pbcopy < ~/.ssh/id_rsa.pub | |
#or | |
cat ~/.ssh/id_rsa.pub | pbcopy |
This file contains 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
# Create a default ssh key | |
ssh-keygen -t rsa | |
# Create another named ssh key | |
ssh-keygen -f ~/.ssh/<username> | |
ssh-add ~/.ssh/<username> |
This file contains 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
HOST_ZONE_ID= | |
ACTION= | |
DNS_NAME= | |
# Add A record for s3 website hosting using custom domain | |
# Ref: http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html | |
aws route53 change-resource-record-sets --hosted-zone-id $HOST_ZONE_ID --change-batch "{ | |
\"Changes\": [{ | |
\"Action\": \"$ACTION\", | |
\"ResourceRecordSet\": { |
Jest cheat sheet
https://github.com/sapegin/jest-cheat-sheet
Access component method
wrapper.instance().componentMethod