Skip to content

Instantly share code, notes, and snippets.

@r0ysue
r0ysue / onlock.py
Created October 7, 2017 03:15 — forked from glyph/onlock.py
onlock.py
from __future__ import print_function
import os, sys, pipes
import objc
from Foundation import NSObject
from CoreFoundation import (
CFRunLoopRun, CFRunLoopStop, CFFileDescriptorCreate,
CFFileDescriptorCreateRunLoopSource, CFRunLoopAddSource,