Skip to content

Instantly share code, notes, and snippets.

View fffonion's full-sized avatar

Wangchong Zhou fffonion

View GitHub Profile
@fffonion
fffonion / Readme.MD
Last active October 5, 2015 18:45
ARM emulator
@fffonion
fffonion / result.md
Created September 23, 2015 22:57
testing gcc optimization options
args run_time
-Dfoo 1.942
-ftree-sink SAME
-fauto-inc-dec SAME
-fcrossjumping 1.925
-fif-conversion SAME
-faggressive-loop-optimizations SAME
-fconserve-stack SAME
-ftree-vrp SAME

Keybase proof

I hereby claim:

  • I am fffonion on github.
  • I am fffonion (https://keybase.io/fffonion) on keybase.
  • I have a public key ASA8PXP8Ep5phLmxxpUdfJIS4tlX1lGZlmmPZ2fSm0u77go

To claim this, I am signing this object:

@fffonion
fffonion / hosts
Created July 2, 2015 02:06
non 443 https redirect
# NOTE: THESE IPs HAVE ALL BEEN BLOCKED!
#216.58.216.14 -> *.google.com 3C8CE9507B1446C4 !4f7b1fca5b53588ecfe8c9f80bf8ef90!
#74.125.224.55 -> *.google.com, search
#216.58.217.193 -> *.googleusercontent.com
#216.58.216.138 -> *.googleapis.com 671AD610CD1A06CC !3814002429ed18bc84fc3a563a33589b!
#twitter
199.16.158.106 twitter.com
199.16.158.106 m.twitter.com
@fffonion
fffonion / vmstat.php
Created April 14, 2015 10:59
VPS all-in-one graph page for SolusVM and KiwiVM
<html>
<head><title>vmstat</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></head>
<body>
<?php
$simple = isset($_GET['simple'])?true:false;
function reasonable_size($s){
if($s<1000)
return $s."B";
else if($s<1024000)
@fffonion
fffonion / wiki_movie_names.py
Last active August 29, 2015 14:12
get original name of movies
#encoding:utf-8
import httplib2
import lxml.html as lhtml
import re
import os
import urllib
import sys
import gzip
reload(sys)
sys.setdefaultencoding('utf-8')
@fffonion
fffonion / goo-proxy.conf
Created November 28, 2014 09:21
Google service redirect @nginx ver
access_log /var/log/nginx/google_proxy-access.log combined;
####sn-nx57
server {
listen 80;
server_name ~^r.+yn7s.c.android.clients.google.com$;
server_name ~^r.+yn7s.c.pack.google.com$;
location / {
proxy_pass http://173.194.56.9:80/;
@fffonion
fffonion / artemis.py
Last active August 1, 2022 06:03
artemis resource unpack
# coding:utf-8
import struct
import os
import os.path as opth
import sys
__version__ = 1.0
getPATH0 = lambda: sys.path[0].decode(sys.getfilesystemencoding())
# 命令行处理
@fffonion
fffonion / YoukuAntiADs+.js
Last active August 29, 2015 14:07
antiads, f*ck crossdomain, f8ck swf loader
// ==UserScript==
// @name YoukuAntiADs@res
// @author Harv.c, fffonion
// @description 你猜猜
// @version 0.2.6
// @namespace http://userscripts.org:8080/users/Harv
// @updateURL http://userscripts.org:8080/scripts/source/119622.meta.js
// @downloadURL http://userscripts.org:8080/scripts/source/119622.user.js
// @include http://*/*
// @include https://*/*
@fffonion
fffonion / goo-proxy.conf
Last active August 29, 2015 14:07
Google service redirect @apache2 ver
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ErrorLog ${APACHE_LOG_DIR}/google-proxy-android-err.log
CustomLog ${APACHE_LOG_DIR}/google-proxy-android-access.log combined
DocumentRoot "/var/www/google-proxy"
ProxyPreserveHost On
ProxyRequests Off
ProxyRequests Off
ProxyPassReverseCookiePath /var/www/google-proxy /