View Readme.md
  • nginx with ngx_http_geoip_module, echo-nginx-module, lua-nginx-module is required; libgeoip needs to be installed and geoip database should be placed under /usr/share/GeoIP.
  • http://example.com for current GeoIP and http://example.com/ip for current IP only
  • http://example.com/x.x.x.x to query any IP.
  • http://example.com/domain-name for GeoIP of domain-name and http://example.com/domain-name/ip to return IP of domain-name only. If multiple IPs are set to single domain-name, all of them will be returned. Only A record will be used.
  • Sample requests are:
$ curl http://example.com/
x.x.x.x
Country, City
ASN number
View changyan_mod.css
#SOHU_MAIN .head-img-w img, #SOHU_MAIN .header-login, #SOHU_MAIN span.header-pho, #SOHU_MAIN img.list-avatar-wap {
border-radius: 5px !important;
box-shadow: 0 1px 3px rgba(0,0,0,.22);
border: 1px solid #b9baa6 !important;
margin-left: 10px !important;
}
#SOHU_MAIN .title-user-w .user-wrap-w{
top: 42px !important;
}
#SOHU_MAIN .post-wrap-w, #SOHU_MAIN #cy-cmt-list, #SOHU_MAIN .module-mobile-cmt-header, #SOHU_MAIN .list-container-wap {
View purge_sdr.sh
#!/bin/bash
IFS=$'\r\n'
for i in $(ls -1| grep "\.sdr"); do
f="${i%.*}"
if [[ $(ls -1| grep "$f"| wc -l) -eq 1 ]]; then
echo $i
rm -rf "$i"
fi
done
View docker_clear_noname.sh
#!/bin/bash
docker rm $(docker ps -a|grep -P "(?:admiring|adoring|affectionate|agitated|amazing|angry|awesome|blissful|boring|brave|clever|cocky|compassionate|competent|condescending|confident|cranky|dazzling|determined|distracted|dreamy|eager|ecstatic|elastic|elated|elegant|eloquent|epic|fervent|festive|flamboyant|focused|friendly|frosty|gallant|gifted|goofy|gracious|happy|hardcore|heuristic|hopeful|hungry|infallible|inspiring|jolly|jovial|keen|kind|laughing|loving|lucid|mystifying|modest|musing|naughty|nervous|nifty|nostalgic|objective|optimistic|peaceful|pedantic|pensive|practical|priceless|quirky|quizzical|relaxed|reverent|romantic|sad|serene|sharp|silly|sleepy|stoic|stupefied|suspicious|tender|thirsty|trusting|unruffled|upbeat|vibrant|vigilant|vigorous|wizardly|wonderful|xenodochial|youthful|zealous|zen)_(?:albattani|allen|almeida|agnesi|archimedes|ardinghelli|aryabhata|austin|babbage|banach|bardeen|bartik|bassi|beaver|bell|benz|father of Indian nuclear programme|bhabha|bhaskara|blackwell|bohr|booth|borg
View nginx-unzip-module_good.patch
diff --git a/ngx_http_unzip_module.c b/ngx_http_unzip_module.c
index 771e1dc..00ea0f1 100644
--- a/nginx-unzip-module/ngx_http_unzip_module.c
+++ b/nginx-unzip-module/ngx_http_unzip_module.c
@@ -224,7 +224,7 @@ static ngx_int_t ngx_http_unzip_handler(ngx_http_request_t *r)
zip_stat_init(&zip_st);
/* let's check what's the size of a file. return 404 if we can't stat file inside archive */
- if (0 != zip_stat(zip_source, unzipextract_path, 0, &zip_st)) {
+ if (0 != zip_stat(zip_source, unzipextract_path, ZIP_FL_NODIR|ZIP_FL_NOCASE, &zip_st)) {
View cf-ddns.sh
#!/bin/bash
# can be A or AAAA
do_record=AAAA
# the interface to get ipv6 address
iface=eth0
# the static suffix we should add to
v6_suf=53
mail="me@email.com"
View Debug.smali
.class public Lcom/test/Debug;
.super Ljava/lang/Object;
# static fields
.field public static final DEBUG_BILLING_DUMMY:Z = false
.field public static final DEBUG_CHECK_MD5:Z = false
.field public static final DEBUG_DISABLE_EVIDENCE:Z = false
View result.md
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
View Apache Config
#Redirect 301 ^/$ /search.htm
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<FilesMatch ".(gif|jpg|jpeg|png|ico|css|js)$">
Header unset Pragma
View keybase.md

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: