Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ivoronin
ivoronin / gobiserial.patch
Created April 24, 2012 14:31
GobiSerial patch
Index: gobiserial-dkms_20110729~1026/GobiSerial.c
===================================================================
--- gobiserial-dkms_20110729~1026.orig/GobiSerial.c 2012-05-09 23:11:02.000000000 +0400
+++ gobiserial-dkms_20110729~1026/GobiSerial.c 2012-05-13 04:08:50.930148737 +0400
@@ -49,6 +49,7 @@
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/version.h>
+#include <linux/module.h>
@ivoronin
ivoronin / qmi_dissector.lua
Created May 9, 2012 03:26
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol
--[[
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1
Copyright (c) 2012 Ilya Voronin <ivoronin@gmail.com>
Based on Code Aurora Forum's BSD/GPL licensed code:
http://www.codeaurora.org/contribute/projects/gobi/
Short howto for using this script:
@ivoronin
ivoronin / gobiapi.patch
Created May 15, 2012 17:21
GobiAPI Patch
Index: libgobi-20120112~1106/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp
===================================================================
--- libgobi-20120112~1106.orig/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp 2012-05-05 15:23:37.892122062 +0400
+++ libgobi-20120112~1106/GobiConnectionMgmt/GobiConnectionMgmtExports.cpp 2012-05-05 15:23:38.000000000 +0400
@@ -39,6 +39,10 @@
#include "StdAfx.h"
#include "GobiConnectionMgmt.h"
+#ifdef __cplusplus
+extern "C" {
@ivoronin
ivoronin / gobinet.patch
Created May 15, 2012 17:23
GobiNet Patch
Index: gobinet-dkms-20110729~1026/GobiUSBNet.c
===================================================================
--- gobinet-dkms-20110729~1026.orig/GobiUSBNet.c 2012-05-09 23:11:33.000000000 +0400
+++ gobinet-dkms-20110729~1026/GobiUSBNet.c 2012-05-13 03:22:02.748985833 +0400
@@ -66,11 +66,15 @@
#define DRIVER_AUTHOR "Qualcomm Innovation Center"
#define DRIVER_DESC "GobiNet"
+#ifdef bool
+#undef bool
@ivoronin
ivoronin / qmi_wwan.patch
Created May 21, 2012 11:32
qmi_wwan patch
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -365,6 +365,24 @@ static const struct driver_info qmi_wwan_force_int4 = {
.data = BIT(4), /* interface whitelist bitmap */
};
+static const struct driver_info qmi_wwan_force_int2 = {
+ .description = "Qualcomm Gobi wwan/QMI device",
+ .flags = FLAG_WWAN,
+ .bind = qmi_wwan_bind_gobi,
@ivoronin
ivoronin / option.patch
Created May 21, 2012 11:47
option patch
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -164,6 +164,8 @@ static void option_instat_callback(struct urb *urb);
#define QUANTA_PRODUCT_GLX 0xEA04
#define QUANTA_PRODUCT_GKE 0xEA05
#define QUANTA_PRODUCT_GLE 0xEA06
+#define QUANTA_PRODUCT_YOTA_ROUTER_OLD 0xD00A
+#define QUANTA_PRODUCT_YOTA_ROUTER 0xD009
#define NOVATELWIRELESS_VENDOR_ID 0x1410
@ivoronin
ivoronin / PKGBUILD
Created August 4, 2012 22:24
systemtap pkgbuild
# Maintainer: Sebastien Binet <binet@farnsworth>
# Wu Xingbo <wuxb45@gmail.com>
pkgname=systemtap
pkgver=1.8
pkgrel=1
pkgdesc="SystemTap provides free software (GPL) infrastructure to simplify the gathering of information about the running Linux system."
url="http://sourceware.org/systemtap/"
arch=('i686' 'x86_64')
license=('GPL')
@ivoronin
ivoronin / linux-systemtap.patch
Created August 6, 2012 06:17
core/linux PKGBUILD patch for building debuginfo package
diff -ur linux.orig/PKGBUILD linux/PKGBUILD
--- linux.orig/PKGBUILD 2012-08-28 21:53:04.757568936 +0400
+++ linux/PKGBUILD 2012-08-28 22:05:23.470891452 +0400
@@ -24,8 +24,8 @@
'i915-i2c-crash-3.5.x.patch')
md5sums=('24153eaaa81dedc9481ada8cd9c3b83d'
'01e0536109d2a06b1701b5051edfcea2'
- '4eb50449b069bd699d92a290dce76d00'
- '74c0ce9291ad8aaf26546fe85a1a7d18'
+ 'f2abe8d7f67936cc0cc8fc50a8d5dcf0'
from twisted.web import proxy, server
import StringIO
import re
from urllib import quote as urlquote
from twisted.application import service, internet
class XMLSTRFixingProxy(proxy.ReverseProxyResource):
def getChild(self, path, request):
return XMLSTRFixingProxy(
self.host, self.port,
# vi: ft=diff
Screen titles patch
Index: mutt-1.5.21/curs_main.c
===================================================================
--- mutt-1.5.21.orig/curs_main.c 2012-04-11 19:41:49.898788540 +0400
+++ mutt-1.5.21/curs_main.c 2012-04-11 19:44:32.826795297 +0400
@@ -123,6 +123,11 @@
fprintf(stderr, "%c]1;%s%c", ASCII_CTRL_OPEN_SQUARE_BRAKET, name, ASCII_CTRL_G);
}