Skip to content

Instantly share code, notes, and snippets.

View RaymondMcGinlay's full-sized avatar

Raymond McGinlay RaymondMcGinlay

View GitHub Profile
@RaymondMcGinlay
RaymondMcGinlay / unlock.py
Created June 11, 2013 13:07
Script for unlocking/locking Gnome desktop for by visiting a url with an authorised device, as seen in nFC unlocking demo. http://www.youtube.com/watch?feature=player_embedded&v=qRJSD93hRCQ
from bottle import route, run, request, static_file
import subprocess
"""
Get DEVICE_ID by running script and connecting to the url with your mobile device
python unlock.py
Bottle v0.11.2 server starting up (using WSGIRefServer())...
Listening on http://192.168.77.102:8888/