Skip to content

Instantly share code, notes, and snippets.

parke

Block or report user

Report or block parke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View zfs-test.sh
apt-get add-apt-repository ppa:zfs-native/stable
apt-get update
apt-get install ubuntu-zfs
mkdir -p /home/loop
rm -f /home/loop/loop0
rm -f /home/loop/loop1
@parke
parke / curev.py
Last active Jan 1, 2016
curev.py is a curses event monitor/dumper. It is similar to xev for X11/Xwindows, except it runs in a terminal. I use curev.py to examine what escape sequences various keys generate across various terminals.
View curev.py
import collections, curses, threading
event = threading.Event ()
keys = collections.deque ()
run = threading.Event ()
def reduce ( keys ):
t = []
for n in keys :
if n == 0 : t.append ( '^@' )
You can’t perform that action at this time.