Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@snaselj
snaselj / node-dbus_pulse_demo
Created September 4, 2013 14:11
node-dbus PulseAudio problem
'use strict';
var Dbus = require('node-dbus');
getAddress();
var timeout = setTimeout(function() {}, 1000);
function getAddress(path, cb){
var msg = Object.create(Dbus.DBusMessage, {
@snaselj
snaselj / vlc.js
Last active December 16, 2015 18:50
Problem with reading metadata from VLC over D-Bus with nodejs and dbus-native.
'use strict';
// Before starting this script run VLC:
// vlc --control dbus http://212.96.160.160:7978/listen.pls
var Dbus = require('dbus-native');
var bus = Dbus.sessionBus();
// Works
bus.invoke({