Skip to content

Instantly share code, notes, and snippets.

@Ravenslofty
Last active February 11, 2018 15:14
Show Gist options
  • Select an option

  • Save Ravenslofty/620140e5068e8300181def7a34d36c07 to your computer and use it in GitHub Desktop.

Select an option

Save Ravenslofty/620140e5068e8300181def7a34d36c07 to your computer and use it in GitHub Desktop.
Mined USB IDs from CUE
#!/usr/bin/perl
while(my $line = <>) {
if ($line =~ /profile_([^.]+).xml:[^<]+<usbPid>([0-9]+)/) {
printf("%s: %4x\n", $1, $2);
} else {
print($line);
}
}
# Use as:
# grep usbPid *.xml | grep -v demo | perl extract.pl | sed -e "s/_/ /g" -e "s/ a/0a/g" -e "s/ 1/ 01/g" | uniq
dark core rgb: 1b35
dark core rgb: 1b64
dark core se: 1b4b
dark core se: 1b51
generic wireless headset: 100
glaive rgb: 1b34
harpoon rgb: 1b3c
hs60surround: 0a3b
hs70wireless: 0a38
k55: 1b3d
k63 wireless: 1b45
k63 wireless: 1b50
k63: 1b40
k65lux rgb: 1b37
k65rgb rapidfire: 1b39
k65rgb: 1b17
k66: 1b41
k68rgb: 1b4f
k68: 1b3f
k70lux: 1b36
k70rapidfire: 1b3a
k70rgb lux: 1b33
k70rgb rapidfire: 1b38
k70rgb se rapidfire: 1b59
k70rgb: 1b13
k95 platinum: 1b2d
k95rgb: 1b11
katar: 1b22
m65pro rgb: 1b2e
m65rgb: 1b12
mm800rgb: 1b3b
sabre1: 1b14
sabre2: 1b19
sabre optical rgb: 1b32
sabre rgb: 1b2f
scimitar pro rgb: 1b3e
scimitar: 1b1e
st100 rgb: 0a36
st100 rgb: 0a34
st100 rgb: 0a32
strafe rgb: 1b20
strafe: 1b15
strafe: 1b44
void pro surround: 0a18
void pro surround: 0a1e
void pro usb: 0a17
void pro usb: 0a1d
void pro wireless: 0a13
void pro wireless: 0a14
void pro wireless: 0a16
void pro wireless: 0a1a
void surround: 0a30
void surround: 0a31
void usb: 0a0f
void usb: 1b29
void usb: 1b2a
void wireless: 1b25
void wireless: 0a2b
void wireless: 0a0c
void wireless: 1b23
void wireless: 1b27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment