Skip to content

Instantly share code, notes, and snippets.

@ion1
ion1 / 0output
Last active December 19, 2015 22:48 — forked from cmouse/gist:6029348
% dist/build/base64-check/base64-check
*** Failed! Falsifiable (after 18 tests and 3 shrinks):
[0,0,62]
@ion1
ion1 / mk2mpris.py
Last active December 23, 2015 12:09 — forked from sampsyo/mk2mpris.py
#!/usr/bin/env python
"""mk2mpris.py: forward GNOME media key events to an MPRIS2 player.
"""
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
APP_NAME = 'mk2mpris'
DBUS_INTERFACE_MK = 'org.gnome.SettingsDaemon.MediaKeys'
OBJ_PATH_MK = '/org/gnome/SettingsDaemon/MediaKeys'