Skip to content

Instantly share code, notes, and snippets.

View kolontsov's full-sized avatar

Vadim Kolontsov kolontsov

View GitHub Profile
@kolontsov
kolontsov / kinesis_advantage2_pedal_pinout.md
Created November 17, 2017 16:42
Pedal/switch pinout for Kinesis Advantage2 keyboard

You can easily connect your existing pedals (I use Casio SP3), buttons, switches etc to your Kinesis Advantage2 keyboard.

Connector type is RJ14 - looks like phone RJ11, but with 4 conductors.

pin colour switch default action
2 black left tab
3 red middle keypad (shift)
4 green common
5 yellow right keypad enter
@kolontsov
kolontsov / nespresso.js
Created October 22, 2017 00:39
Nespresso coffee machine BLE experiments (get AUTH_KEY with Android BT HCI log and Wireshark)
const noble = require('noble');
const SERVICE_UUID = '06aa1910f22a11e39daa0002a5d5c51b';
const TEMPERATURE = {low: '01', medium: '00', high: '02'};
const VOLUME = {ristretto: '00', espresso: '01', lungo: '02', americano: '04', hotwater: '05', recipe: '07'};
let brew_cmd = (vol, t)=>`0305070400000000${TEMPERATURE[t]}${VOLUME[vol]}`;
let process_char = char=>{
if (char.uuid=='06aa3a41f22a11e39daa0002a5d5c51b')
{
char.write(Buffer.from(AUTH_KEY, 'hex'));
@kolontsov
kolontsov / keybase.md
Created October 6, 2017 14:56
keybase.io proof of identity

Keybase proof

I hereby claim:

  • I am kolontsov on github.
  • I am kolontsov (https://keybase.io/kolontsov) on keybase.
  • I have a public key ASA6QPQY07rAHQaeFCkBDbwNQ7QSV_7M0I1TzyCi61CSogo

To claim this, I am signing this object: