Skip to content

Instantly share code, notes, and snippets.

View rogeliodh's full-sized avatar

Rogelio Domínguez Hernández rogeliodh

  • Mexico City
  • 11:48 (UTC -06:00)
View GitHub Profile
@rogeliodh
rogeliodh / -
Created October 22, 2016 18:33
diff --git a/utils/hwstub/lib/hwstub_usb.cpp b/utils/hwstub/lib/hwstub_usb.cpp
index 6723656..0352872 100644
--- a/utils/hwstub/lib/hwstub_usb.cpp
+++ b/utils/hwstub/lib/hwstub_usb.cpp
@@ -535,6 +535,7 @@ error jz_handle::probe()
if(libusb_claim_interface(m_handle, 0) != 0)
m_probe_status = error::PROBE_FAILURE;
+ m_probe_status = error::SUCCESS;
return m_probe_status;
@rogeliodh
rogeliodh / -
Created October 22, 2016 17:41
Bus 001 Device 017: ID 601a:4760 Ingenic Semiconductor Ltd.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x601a Ingenic Semiconductor Ltd.
# Official X1II 1.2 Firmware
devel@devel:~/fiio$ wget https://www.dropbox.com/s/8x0fhctajqm0wt1/X1II-FW1.2.zip?dl=1
devel@devel:~/fiio$ unzip X1II-FW1.2.zip
Archive: X1II-FW1.2.zip
inflating: X1II.fw
inflating: X1II firmware update instructions (abridged).txt
# fw is just a tgz
devel@devel:~/fiio$ file X1II.fw
X1II.fw: gzip compressed data, last modified: Sat Oct 1 12:36:19 2016, from Unix
@rogeliodh
rogeliodh / fetch_news.sh
Created January 4, 2012 14:34
[Bash] Script to fetch news with calibre
#!/bin/bash
# This is free and unencumbered shell script released into the public domain.
#
####################### Begin Customization Section #############################
#
# Name of the recipe to fetch. You can run:
# ebook-convert --list-recipes
# to look for the correct name. Do not forget the .recipe suffix
RECIPE="La Jornada (Mexico).recipe"