Skip to content

Instantly share code, notes, and snippets.

View caizixian's full-sized avatar

Zixian Cai caizixian

View GitHub Profile
@caizixian
caizixian / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 04:18 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@caizixian
caizixian / sms
Last active September 5, 2015 12:33 — forked from isDipesh/sms
Android SMS backup/restore w/ adb
#Backup:
adb remount
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db mmssms.db
#Restore:
adb remount
adb push mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db
#!/usr/bin/env bash
echo 'deb http://shadowsocks.org/debian wheezy main' >> /etc/apt/sources.list
# Pre-requisites
sudo apt-get -y update
sudo apt-get -y install pptpd
sudo apt-get -y install fail2ban
sudo apt-get -y install shadowsocks-libev
package {
import flash.display.*;
import flash.text.*;
public dynamic class CaptionTip extends MovieClip {
public var captionTiptxt:TextField;
}
}//package
@caizixian
caizixian / hashsum_calc.py
Created January 23, 2015 13:03
Hashsum Calculator
#!/usr/bin/env python
# coding:utf-8
# Copyright (c) 2014 Ivan Cai
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@caizixian
caizixian / keybase.md
Created December 15, 2014 14:05
keybase.md

Keybase proof

I hereby claim:

  • I am caizixian on github.
  • I am caizixian (https://keybase.io/caizixian) on keybase.
  • I have a public key whose fingerprint is 759A 3532 D448 702D D316 3971 CC25 4107 073F 3258

To claim this, I am signing this object:

@caizixian
caizixian / readme.txt
Last active August 29, 2015 14:08 — forked from fqrouter/readme.txt
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能)
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks
1、 shadowsocks的timeout设置
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。
2、 检查操作系统的各种限制
对于openvz的vps,特别需要检查一下

Python 代码规范

Contents

  • 尽量简单明了。