Skip to content

Instantly share code, notes, and snippets.

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
@bdeitte
bdeitte / gist:b5ff2592fc6409fbaa78b5bd69e2c49b
Created July 27, 2018 17:52
List of encrypted buckets
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']:
"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
### 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:
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!');
{
"name": "create-stat",
"dependencies": {
"datadog-metrics": "*"
}
}
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';
})