Skip to content

Instantly share code, notes, and snippets.

Paul Wakeford paulwakeford

Block or report user

Report or block paulwakeford

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 play-pause-sonos.js
var http = require('http');
exports.handler = function (event, context) {
var options = {};
options.host = "YOUR_HOST";
options.port = "YOUR_PORT";
options.path = '/YOUR_ROOM/state';
console.log("doing initial GET " + options.host + ":" + options.port + options.path );
http.get(options, function(res) {
console.log("in first get block");
var body = '';
View dts2dd5.sh
#!/bin/sh
###############################################################################
#
# Script to recursively search a directory and batch convert all files of a given
# file type into another file type via HandBrake conversion.
#
# To run in your environment set the variables:
# hbcli - Path to your HandBrakeCLI
#
View keybase.md

Keybase proof

I hereby claim:

  • I am paulwakeford on github.
  • I am paulwakeford (https://keybase.io/paulwakeford) on keybase.
  • I have a public key whose fingerprint is CDF6 C159 2E43 E8FB DB9D 8E8E E2D3 637E DD58 0463

To claim this, I am signing this object:

@paulwakeford
paulwakeford / gist:a3ad1f390b1f270c6570
Last active Aug 15, 2016
Enable CloudTrail for all regions
View gist:a3ad1f390b1f270c6570
for i in `aws ec2 describe-regions --region ap-southeast-2 --query 'Regions[*].RegionName' --output text`; do aws cloudtrail --region $i create-trail --name Default --s3-bucket-name BUCKETNAME-HERE `[[ "$i" = "ap-southeast-2" ]] && echo "--include-global-service-events" || echo "--no-include-global-service-events"`; aws cloudtrail --region $i start-logging --name Default; done
You can’t perform that action at this time.