Skip to content

Instantly share code, notes, and snippets.

View rahedges's full-sized avatar

Robert Hedges rahedges

  • Vizgen
  • United States
View GitHub Profile
var bleno = require('bleno');
var noble = require('noble');
var currentPeripheral = null;
noble.on('stateChange', function(state) {
console.log("stateChange " + state);
if (state === 'poweredOn') {
console.log("start peripheral discovery");
noble.startScanning();
startIBeaconAdvertising();
########################################################################
#### Custom Preseed Amlin Europe using Ubiquity
### By Kelly Crabbé for Amlin Europe
### Tested on Ubuntu Trusty Thral 14.04 LTS
####################################################################
# General
####################################################################
# Once installation is complete, automatically power off.
@rahedges
rahedges / a2dp.py
Created April 19, 2017 21:49 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .