Skip to content

Instantly share code, notes, and snippets.

View updateing's full-sized avatar

Hamster Tian updateing

View GitHub Profile
@updateing
updateing / ppp_6to4.sh
Last active February 14, 2019 15:20
Automatically set up 6to4 tunnel on optical fiber modems
#!/bin/sh
#
# Use PPP interface to set up a 6to4 tunnel
#
# Author: Hamster Tian <haotia@gmail.com>
# Date: 2016/01/26
#
PPP_IFACE=ppp0
LAN_IFACE=br0
@updateing
updateing / HUDBT-BlackTheme.css
Created April 10, 2016 13:01
Custom black-themed stylesheet for HUDBT, based on AlanGao's work.
/* 初始化 */
body {
border: 0;
padding: 0;
margin: 0;
font-family: "Microsoft Yahei",tahoma,arial,helvetica,sans-serif;
background: rgb(238,238,238);
}
table,tbody,tr,td,th,div,#header-info {
From efdfdede52181591db3d85a8622bb79a1fb1262b Mon Sep 17 00:00:00 2001
From: Hamster Tian <haotia@gmail.com>
Date: Tue, 19 Apr 2016 09:08:21 +0800
Subject: [PATCH] Fix non-aligned memory access in ConvertAnyFormat
* Log indicated that the DOUBLE(Fmt=12) format was affected,
not sure if other formats are affected though.
Change-Id: I10b29bd54d350153fddd544e8a43711c2c48bb51
---
@updateing
updateing / wltemp.c
Created April 25, 2016 12:09
Program for reading temperature of Broadcom wireless adapters.
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#define WLC_IOCTL_SMLEN 256 /* "small" length ioctl buffer required */
#define WLC_GET_VAR 262 /* get value of named variable */
@updateing
updateing / 0002-FSpammer-intergration.patch
Created September 30, 2016 05:25
QQ group message filter (smali)
From 587b64539a8033adf407bd6978526a33c2a6a0da Mon Sep 17 00:00:00 2001
From: Hamster Tian <haotia@gmail.com>
Date: Thu, 29 Sep 2016 23:54:35 +0800
Subject: [PATCH 2/4] FSpammer intergration
---
.../BaseMessageProcessorForTroopAndDisc.smali | 41 +++++++++++++++++++++-
1 file changed, 40 insertions(+), 1 deletion(-)
diff --git a/classes/com/tencent/mobileqq/app/message/BaseMessageProcessorForTroopAndDisc.smali b/classes/com/tencent/mobileqq/app/message/BaseMessageProcessorForTroopAndDisc.smali
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index eac5abb..4f9a8ae 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -6019,6 +6019,7 @@ void ACodec::BaseState::onInputBufferFilled(const sp<AMessage> &msg) {
status_t err2 = OK;
switch (metaType) {
+ case kMetadataBufferTypeCameraSource:
case kMetadataBufferTypeInvalid:
@updateing
updateing / 0001-Revert-stagefright-untangle-metadata-mode-handling.patch
Created October 13, 2016 02:29
CM14 frameworks/av patches for camcorder
From d289004f35708eb794557dc7e20827d963bfe7bf Mon Sep 17 00:00:00 2001
From: Hamster Tian <haotia@gmail.com>
Date: Sun, 2 Oct 2016 23:15:03 +0800
Subject: [PATCH 1/4] Revert "stagefright: untangle metadata-mode handling"
This reverts commit 3e328782f1e1061d08ea0c45b855cc418a2d9ea6.
Conflicts:
include/media/stagefright/SurfaceMediaSource.h
@updateing
updateing / 1-tsens-data.diff
Last active December 12, 2016 04:52
Enable thermal sensors on Linksys EA8500 with LEDE
From 4d6dd770cea0336c276e43c6900af6edb1e9e981 Mon Sep 17 00:00:00 2001
From: Narendran Rajan <nrajan@codeaurora.org>
Date: Fri, 31 Oct 2014 16:05:16 -0700
Subject: [PATCH] CHROMIUM: ARM: qcom: dts: Add tsens data
BUG=None
TEST=build/boot on storm
Change-Id: I3121ca61f426b560e014c2b3569414ae8718c4ad
Signed-off-by: Narendran Rajan <nrajan@codeaurora.org>
@updateing
updateing / R6220-config
Created November 18, 2016 11:28
Configuration for building LEDE on R6220 with SPI flash
#
# Automatically generated file; DO NOT EDIT.
# LEDE Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc44x is not set
# CONFIG_TARGET_realview is not set
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
@updateing
updateing / rj.html
Created February 17, 2017 07:12
RJ Level 7 Password Recover
<input type="text" id="pwd"></input>
<input type="text" id="plain"></input>
<button onclick="crackPassword(document.getElementById('pwd').value);"></button>
<script type="text/javascript" src="rj.js"></script>