Skip to content

Instantly share code, notes, and snippets.

View WarheadsSE's full-sized avatar

Jason Plum WarheadsSE

  • GitLab, Inc
  • Lancaster, PA, US
View GitHub Profile
@WarheadsSE
WarheadsSE / cklau-devices.txt
Last active June 2, 2021 00:49
TinyPilot USB HID research
## Keyboard ##
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0104 Rev=01.00
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=250mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
## Mouse ##
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0104 Rev=01.00
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=250mA
@WarheadsSE
WarheadsSE / gist:40ffb90a36dd8727db97
Last active January 27, 2016 14:17
wpa_supplicant.interface introspection
<?xml version="1.0"?>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg name="data" type="s" direction="out"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
@WarheadsSE
WarheadsSE / gist:7485255
Created November 15, 2013 14:37
Simple configuration to ensure fbcon is loaded at boot
$ /etc/modules-load.d/fbcon.conf
# load the f(rame)b(uffer)con(sole) module @ boot
fbcon
[root@GFN nodejs]# gdb node_g
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv5tel-unknown-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Starting program: /usr/bin/node
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x0023ff24 in v8::internal::Parser::ParseBinaryExpression(int, bool, bool*) ()
(gdb) backtrace full
#0 0x0023ff24 in v8::internal::Parser::ParseBinaryExpression(int, bool, bool*)
()
No symbol table info available.
#1 0x00240e38 in v8::internal::Parser::ParseConditionalExpression(bool, bool*)
@WarheadsSE
WarheadsSE / gist:1434894
Created December 5, 2011 19:26
nodejs 0.6.5 - v8 - armv5te - linux 3.1.1
[root@GFN nodejs]# strace node
execve("/usr/bin/node", ["node"], [/* 21 vars */]) = 0
brk(0) = 0x526000
uname({sys="Linux", node="GFN", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=41293, ...}) = 0
mmap2(NULL, 41293, PROT_READ, MAP_PRIVATE, 3, 0) = 0x400c6000
close(3) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3