Skip to content

Instantly share code, notes, and snippets.

Launch pulseview with test file and then exit:
$ perf record ./pulseview test-file.sr
Display profile data:
$ perf report
e.g.
Before
@jburgess777
jburgess777 / main.py
Created September 16, 2016 22:11
Tilda SNES controller
import pyb
# SNES Connector pinout:
#
# -----------------
# | 1 2 3 4 | 5 6 7 >
# -----------------
#
# 1 +5V - Connect to vBAT
# 2 Clock } Connect to any unused data pin and specify
@jburgess777
jburgess777 / getButton.py
Created February 23, 2016 23:11
Script to find a Bluetooth camera remote and print the button events
#!/usr/bin/env python
import sys
import evdev
devices = [evdev.InputDevice(fn) for fn in evdev.list_devices()]
if len(devices) == 0:
print "No devices found, try running with sudo"
sys.exit(1)
$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'