Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Bjurstrom benbjurstrom

View GitHub Profile
@benbjurstrom
benbjurstrom / Code.gs
Last active May 4, 2021
PurgeOldEmails
View Code.gs
/*
|--------------------------------------------------------------------------
| PurgeOldEmails
|--------------------------------------------------------------------------
| https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a
|
*/
// Purge messages automatically after how many days?
var DELETE_AFTER_DAYS = 7
@benbjurstrom
benbjurstrom / iotButton2IFTTT.js
Created May 16, 2016
Amazon IOT Button To IFTTT
View iotButton2IFTTT.js
/**
* An Amazon Lambda function to send an IOT button request to an IFTTT Maker endpoint.
* Code adapted from SNS2IFTTT by Danilo Poccia [https://github.com/danilop/SNS2IFTTT/blob/master/index.js]
*/
var http = require('http');
var iftttMakerSecretKey = '<YOUR IFTTT MAKER SECRET KEY>';
/**
* When invoked from an IOT Button press the event payload contains the following:
View keybase.md

Keybase proof

I hereby claim:

  • I am benbjurstrom on github.
  • I am benbjurstrom (https://keybase.io/benbjurstrom) on keybase.
  • I have a public key ASDk-tAYVrIgkxhMUx9Nv2IzbtlT1LdcBxkCDxM4X7OGJgo

To claim this, I am signing this object: