I hereby claim:
- I am joeyvandijk on github.
- I am joeyvandijk (https://keybase.io/joeyvandijk) on keybase.
- I have a public key whose fingerprint is 7FA8 7ECE 473A 4822 1BB2 CF1C A239 F9AF 41CD 02D7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
CMD + CTRL + SPACEBAR --- show emojiCTRL + ALT + SHIFT + V --- paste without formattingCMD + ~ or CMD + SHIFT + ~ --- swap windows inside 1 app⌃ + ⌘ + ⇧ + 4 --- allows you to take a screenshot and save it to your clipboardCMD + SHIFT + / --- open help section of any app that has a help menu-itemCTRL + U --- remove everything on this lineCTRL + R --- reverse search for specific string| // define libraries you would need | |
| var oauth = require('oauth') | |
| var AWS = require('aws-sdk') | |
| var cuid = require('cuid') | |
| // define your OAuth-application credentials | |
| var twitterConsumerKey = 'xxxxxxxxxxxxxxxxxxxx' | |
| var twitterConsumerSecret = 'xxxxxxxxxxxxxxxxxxxx' | |
| // ensure AWS is requesting the nearest region |
| // define libraries you would need | |
| var oauth = require('oauth') | |
| var AWS = require('aws-sdk') | |
| // define your OAuth-application credentials | |
| var twitterConsumerKey = 'xxxxxxxxxxxxxxxxxxxx' | |
| var twitterConsumerSecret = 'xxxxxxxxxxxxxxxxxxxx' | |
| // ensure AWS is requesting the nearest region | |
| AWS.config.update({ |
| // define libraries you would need | |
| var oauth = require('oauth') | |
| // define your OAuth-application credentials | |
| var twitterConsumerKey = 'xxxxxxxxxxxxxxxxxxxx' | |
| var twitterConsumerSecret = 'xxxxxxxxxxxxxxxxxxxx' | |
| var api = new oauth.OAuth( | |
| 'https://twitter.com/oauth/request_token', | |
| 'https://twitter.com/oauth/access_token', |
| # Set the logs retention policy for your default AWS account in region eu-west-1 to 5 days, execute the command: | |
| # ./set-log-groups-retention.sh exampleFunction 5 | |
| # Need to have Resource: "*" in IAM to get access to call all regions in SSM (Systems Manager) | |
| # Reference: https://docs.aws.amazon.com/general/latest/gr/rande.html | |
| # DO NOT FORGET TO SET `export AWS_PROFILE=your-aws-config-iam-profile` ;) | |
| export LOGS_PREFIX=${1:exampleFunction} | |
| RETENTION_DAYS=${2:-3} |