-
Access log & error log analysis yields good results
I recently created a python script to analyze Nginx’s access log & a WAF generated error log. The preliminary result looks promising. The script can filter out most malicious & bot traffic with very low false positive on human traffic. I ran the IPs collected by this script against multiple blacklists: More than 88% of…
-
Binary search & linear search with different runtime engines with different array sizes
I am very impressed by the V8 performance. Note that all the test are performed in a “cold start” environment (Chrome will be even faster when it’s pre-warmed). Nginx JS module timing does not include VM creation time, it’s simply how long it takes for Javascript includes to return. 3 arrays are all sorted for…
-
Android captive
adb shell “settings put global captive_portal_http_url http://captive.v2ex.co/generate_204”; adb shell “settings put global captive_portal_https_url https://captive.v2ex.co/generate_204”; adb shell “settings put global captive_portal_fallback_url https://www.google.cn/generate_204”; adb shell “settings put global captive_portal_other_fallback_urls https://www.qualcomm.cn/generate_204”;

