Skip to content

Instantly share code, notes, and snippets.

Joey van Dijk joeyvandijk

Block or report user

Report or block joeyvandijk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View set-log-groups-retention.sh
# 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}
View oauth-scrape-example.js
// 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',
View oauth-callback.js
// 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({
View oauth-redirect.js
// 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
View keyboard-shortcuts.md

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
View react-native-navigator-orientation-bug.md
const React = require('react-native')

var {
  AppRegistry,
  StyleSheet,
  Navigator,
  View,
  Text,
  TouchableHighlight,
View keybase.md

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:

You can’t perform that action at this time.