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
h1. Recent Guides that may help you | |
- https://howchoo.com/pi/how-to-make-a-raspberry-pi-google-calendar | |
- https://www.hanselman.com/blog/how-to-build-a-wall-mounted-family-calendar-and-dashboard-with-a-raspberry-pi-and-cheap-monitor | |
h1. Gear to buy | |
- Many touchscreens won't work so be careful! I used ViewSonic TD2220 22 Inch 1080p Dual-Point Optical Touch Screen Monitor with DVI and VGA | |
- Any rasberry pi should work- make sure to get one with a case | |
- Remember a wall mount- I don't have these details but most should work fine |
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
import boto3 | |
# Create an S3 client | |
s3 = boto3.client('s3') | |
# Call S3 to list current buckets | |
response = s3.list_buckets() | |
# Get a list of all bucket names from the response | |
for bucket in response['Buckets']: |
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
"use strict"; | |
var dgram = require('dgram'); | |
var assert = require('assert'); | |
var net = require('net'); | |
var StatsD = require('../').StatsD; | |
/** | |
* Since sampling uses random, we need to patch Math.random() to always give | |
* a consistent result |
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
### Keybase proof | |
I hereby claim: | |
* I am bdeitte on github. | |
* I am bdeitte (https://keybase.io/bdeitte) on keybase. | |
* I have a public key ASBrI8Nj5kDPYLWO67Su_BsLSBZToK7FWpJ-GyNDTGjxwwo | |
To claim this, I am signing this object: |
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
var metrics = require('datadog-metrics'); | |
metrics.increment("integration.failure", 1, ["type:RetireSmart", "statusCode:500", "env:production"]) | |
metrics.flush(function() { | |
console.log('Success!'); | |
}, function(err) { | |
console.log('Error: ' + err); | |
}); | |
setTimeout(function() { | |
console.log('All set!'); |
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
{ | |
"name": "create-stat", | |
"dependencies": { | |
"datadog-metrics": "*" | |
} | |
} |
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
var Q = require('q'); | |
var allPromises = function (arrayOfThings) { | |
var promises = []; | |
arrayOfThings.forEach(function(aThing) { | |
console.log('updating a thing: ' + aThing); | |
var promise = Q.fcall(function () { | |
console.log("in func promise"); | |
return 'something'; | |
}) |