Skip to content

Instantly share code, notes, and snippets.

View joeyvandijk's full-sized avatar

Joey van Dijk joeyvandijk

View GitHub Profile

Keybase proof

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:

const React = require('react-native')

var {
  AppRegistry,
  StyleSheet,
  Navigator,
  View,
  Text,
  TouchableHighlight,
// 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',
// 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')
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
# 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}

Apple OSX

  • CMD + CTRL + SPACEBAR --- show emoji
  • CTRL + ALT + SHIFT + V --- paste without formatting
  • ⌃ + ⌘ + ⇧ + 4 --- allows you to take a screenshot and save it to your clipboard
  • CMD + SHIFT + / --- open help section of any app that has a help menu-item
  • Terminal
    • CTRL + U --- remove everything on this line
    • CTRL + R --- reverse search for specific string
  • CMD + double-click --- click on url to open in default browser