Skip to content

Instantly share code, notes, and snippets.

@johnnyman727
johnnyman727 / ibeacon.js
Created June 27, 2014 01:37
Use Tessel as an iBeacon device
var tessel = require('tessel');
var blePort = tessel.port['A'];
var bleLib = require('ble-ble113a');
var data = new Buffer('0201061aff4c000215e2c56db5dffb48d2b060d0f5a71096e000000000c6','hex');
var ble = bleLib.use(blePort, function(err) {
if (err) return console.log("Error connecting to slave", err);
ble.setAdvertisingData(data, function (e2){
if (e2) console.log("Error set adv", e2);
@EvanSimpson
EvanSimpson / tessel-ibeacon.js
Created August 7, 2014 23:34
Turn your Tessel BLE module into an iBeacon
var tessel = require('tessel');
var bleLib = require('ble-ble113a');
var bleadvertise = require('bleadvertise');
var uuid = 'D9B9EC1F392543D080A91E39D4CEA95C'; // Apple's example UUID
var major = '01';
var minor = '10';
var iBeaconData = new Buffer(uuid+major+minor, 'hex'); // Create data Buffer
@ryan0x44
ryan0x44 / Terraform-Blue-Green-AWS.md
Created November 19, 2015 21:57
Blue-Green AWS Auto Scaling Deployments with Terraform

A quick note on how I'm currently handling Blue/Green or A/B deployments with Terraform and AWS EC2 Auto Scaling.

In my particular use case, I want to be able to inspect an AMI deployment manually before disabling the previous deployment.

Hopefully someone finds this useful, and if you have and feedback please leave a comment or email me.

Overview

I build my AMI's using Packer and Ansible.