Skip to content

Instantly share code, notes, and snippets.

View naterh's full-sized avatar

Nada Who naterh

View GitHub Profile
@naterh
naterh / gist:6a55b50bd21da10ae90919a03eedf26d
Last active November 2, 2017 15:18
Rackspace OnMetal CentOS 7 Archived Public Images
Name Uuid Status Created At
OnMetal - CentOS 7
7fa0084c-ad28-44a0-8590-f6b2631ae3c4
active 2017-09-18 16:30:51
OnMetal - CentOS 7
8d511fee-1ac9-47c4-bb01-cc11aa4b07dd
active 2017-08-19 14:37:44
OnMetal - CentOS 7
ea6fa242-431b-42ae-9201-a4d6fd0cfba2
@naterh
naterh / gist:bf5590331a28aa56f1a5b558d2f807bc
Created May 9, 2017 06:40
SP3 SAM0 dev on I2C0 - Sensor Hub
SAM0 dev on SP3 I2C0
Report Descriptor for MSHW0030 - Sensor Hub
05 20 09 01 a1 01 85 01 05 20 09 73 a1 00 0a 09 03 15 00 25 02 75 08 95 01 a1 02 0a 30 08 0a 31 08 0a 32 08 b1 00 c0 0a 0e 03 15 00 27 ff ff ff ff 75 20 95 01 55 00 b1 02 0a 52 14 15 00 26 ff ff 75 10 95 01 55 0d b1 02 0a 16 03 15 00 25 05 75 08 95 01 a1 02 0a 40 08 0a 41 08 0a 42 08 0a 43 08 0a 44 08 0a 45 08 b1 00 c0 0a 19 03 15 00 25 05 75 08 95 01 a1 02 0a 50 08 0a 51 08 0a 52 08 0a 53 08 0a 54 08 0a 55 08 b1 00 c0 0a 01 02 15 00 25 06 75 08 95 01 a1 02 0a 00 08 0a 01 08 0a 02 08 0a 03 08 0a 04 08 0a 05 08 0a 06 08 b1 00 c0 0a 04 03 15 00 25 ff 75 08 95 01 55 00 b1 02 05 20 0a 01 02 15 00 25 06 75 08 95 01 a1 02 0a 00 08 0a 01 08 0a 02 08 0a 03 08 0a 04 08 0a 05 08 0a 06 08 81 00 c0 0a 02 02 15 00 25 05 75 10 95 01 a1 02 0a 10 08 0a 11 08 0a 12 08 0a 13 08 0a 14 08 0a 15 08 81 00 c0 0a 41 05 17 00 00 00 00 27 ff ff ff ff 75 20 95 01 81 02 0a 53 04 16 01 80 26 ff 7f 75 10 95 01 55 0d 81 02 0a 54 04 16 01 80 26 ff 7f 75 10 95 01 55 0d 81 02 0a
@naterh
naterh / gist:6b2a0f5c2a42325bb9371b39e89f3f0b
Created April 11, 2017 04:06
3 finger touch samples NTRG0001 Surface Pro 3
3 finger samples
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x60 0x64 0xe4 0xc8 0x01 0x4e 0x0a 0x4e 0x0a 0x97 0x05 0x97 0x05 0xee 0x02 0xa5 0x02 0xff 0xff 0xff 0xff 0x01 0xac 0x03 0x00 0x00 0xff 0xff
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x60 0x64 0xe4 0xc8 0x01 0x4e 0x0a 0x4e 0x0a 0x97 0x05 0x97 0x05 0xee 0x02 0xa5 0x02 0xff 0xff 0xff 0xff 0x01 0xac 0x03 0x00 0x00 0xff 0xff
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x60 0x64 0xe4 0xc8 0x01 0x4e 0x0a 0x4e 0x0a 0x97 0x05 0x97 0x05 0xee 0x02 0xa5 0x02 0xff 0xff 0xff 0xff 0x01 0xac 0x03 0x00 0x00 0xff 0xff
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x60 0x64 0xe4 0xc8 0x01 0x4e 0x0a 0x4e 0x0a 0x97 0x05 0x97 0x05 0xee 0x02 0xa5 0x02 0xff 0xff 0xff 0xff 0x01 0xac 0x03 0x00 0x00 0xff 0xff
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x60 0x64 0xe4 0xc8 0x01 0x4e 0x0a 0x4e 0x0a 0x97 0x05 0x97 0x05 0xee 0x02 0xa5 0x02 0xff 0xff 0xff 0xff 0x01 0xac 0x03 0x00 0x00 0xff 0xff
4/10/17 10:37:12.000 PM kernel[0]: 0x1d 0x00 0x03 0x
@naterh
naterh / gist:881538079e33c559243e0743194cbf92
Created April 11, 2017 04:04
2 finger touch samples NTRG0001 Surface Pro 3
2 finger samples
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x66 0x60 0xe4 0xa8 0x01 0x3a 0x17 0x3a 0x17 0x5b 0x05 0x5b 0x05 0xf4 0x02 0x1b 0x03 0xff 0xff 0xff 0xff 0x01 0xf2 0xbc 0x00 0x00 0x00 0x00
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x66 0x60 0xe4 0xa8 0x01 0x3a 0x17 0x3a 0x17 0x5b 0x05 0x5b 0x05 0xf4 0x02 0x1b 0x03 0xff 0xff 0xff 0xff 0x01 0xf2 0xbc 0x00 0x00 0x00 0x00
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x66 0x60 0xe4 0xa8 0x01 0x3a 0x17 0x3a 0x17 0x5b 0x05 0x5b 0x05 0xf4 0x02 0x1b 0x03 0xff 0xff 0xff 0xff 0x01 0xf2 0xbc 0x00 0x00 0x00 0x00
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x66 0x60 0xe4 0xa8 0x01 0x3a 0x17 0x3a 0x17 0x5b 0x05 0x5b 0x05 0xf4 0x02 0x1b 0x03 0xff 0xff 0xff 0xff 0x01 0xf2 0xbc 0x00 0x00 0x00 0x00
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x66 0x60 0xe4 0xa8 0x01 0x3a 0x17 0x3a 0x17 0x5b 0x05 0x5b 0x05 0xf4 0x02 0x1b 0x03 0xff 0xff 0xff 0xff 0x01 0xf2 0xbc 0x00 0x00 0x00 0x00
4/10/17 10:33:45.000 PM kernel[0]: 0x1d 0x00 0x03 0x
@naterh
naterh / single touch hid samples
Created April 11, 2017 04:03
Single touch events NTRG0001 Surface Pro 3
single touch samples
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x01 0x00 0xe0 0x14 0x3f 0x04 0x00 0x00 0x00 0x00 0xda 0x04 0xda 0x04 0xfb 0x02 0xc5 0x02 0xff 0xff 0xff 0xff 0x01 0x89 0x0b 0x00 0x00 0x00 0x00
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x01 0x00 0xe0 0x14 0x3f 0x04 0x00 0x00 0x00 0x00 0xda 0x04 0xda 0x04 0xfb 0x02 0xc5 0x02 0xff 0xff 0xff 0xff 0x01 0x89 0x0b 0x00 0x00 0x00 0x00
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x01 0x00 0xe0 0x14 0x3f 0x04 0x00 0x00 0x00 0x00 0xda 0x04 0xda 0x04 0xfb 0x02 0xc5 0x02 0xff 0xff 0xff 0xff 0x01 0x89 0x0b 0x00 0x00 0x00 0x00
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x01 0x00 0xe0 0x14 0x3f 0x04 0x00 0x00 0x00 0x00 0xda 0x04 0xda 0x04 0xfb 0x02 0xc5 0x02 0xff 0xff 0xff 0xff 0x01 0x89 0x0b 0x00 0x00 0x00 0x00
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x01 0x00 0xe0 0x14 0x3f 0x04 0x00 0x00 0x00 0x00 0xda 0x04 0xda 0x04 0xfb 0x02 0xc5 0x02 0xff 0xff 0xff 0xff 0x01 0x89 0x0b 0x00 0x00 0x00 0x00
4/10/17 10:30:40.000 PM kernel[0]: 0x0c 0x00 0x
@naterh
naterh / gist:dd1a59adcb28ffb17c62cacfb5622bba
Created April 11, 2017 02:52
HID info for i2c touchscreen on surface pro 3
Surface Pro 3 HID touch info
0x0c pen
touch, grab and drag pen sample
0x0c 0x00 0x01 0x00 0x72 0x11 0xe4 0x0e 0x00 0x00 0x00 0x00 0x5e 0x05 0x5e 0x05 0xd3 0x01 0x14 0x02 0xff 0xff 0xff 0xff 0x01 0x9e 0x04 0x00 0x00 0x00 0x00
and
0x0c 0x00 0x01 0x00 0x72 0x11 0xe4 0x0e 0x00 0x00 0x00 0x00 0x5e 0x05 0x5e 0x05 0xd3 0x01 0x14 0x02 0xff 0xff 0xff 0xff 0x01 0x9e 0x04 0x00 0x00 0x00 0x00
@naterh
naterh / gist:c8520addd42283381a89878de56c801f
Created February 1, 2017 21:25
auto update __init__.py files for namespace packages installer
ignore_keywords = ['build', 'egg-info', 'dist', 'frontend', 'scratch', 'doc']
def ignore_check(folder):
for i in ignore_keywords:
if folder.endswith(i) or i in folder.split('/'):
return True
return False
@naterh
naterh / dex_imap_gmail.py
Created January 10, 2017 07:04
Helper util for getting Dex files into Dexlink
#!/usr/bin/env python
#
# Helper util for removing SD1* line from emailed DEX files & uploading to Dexlink
#
import base64
import email
import sys
import smtplib
import imaplib
import getpass
@naterh
naterh / gist:13e4ac685e98cd385bea0f476fd767de
Created April 28, 2016 17:10
Avocent viewer jnpl contents
cat viewer.jnlp\(192.168.0.227\@0\@1461862973458\)
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="https://192.168.0.227:443/" spec="1.0+">
<information>
<title>Virtual KVM Client</title>
<vendor>Avocent Corporation</vendor>
<icon href="http://192.168.0.227:80/images/logo.gif" kind="splash"/>
<shortcut online="true"/>
</information>
<application-desc main-class="com.avocent.kvm.client.Main">
nmap -Pn 192.168.0.227
Starting Nmap 6.40 ( http://nmap.org ) at 2016-04-28 16:56 UTC
Nmap scan report for 192.168.0.227
Host is up (0.019s latency).
Not shown: 992 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind