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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from socket import socket, error, setdefaulttimeout | |
import ssl | |
import re | |
import time | |
import sys | |
import os | |
from hashlib import md5 | |
import json | |
os.chdir(os.path.split(sys.argv[0])[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/lib_ffi.c b/src/lib_ffi.c | |
index a29014e5..268c948c 100644 | |
--- a/src/lib_ffi.c | |
+++ b/src/lib_ffi.c | |
@@ -494,6 +494,7 @@ LJLIB_CF(ffi_new) LJLIB_REC(.) | |
{ | |
CTState *cts = ctype_cts(L); | |
CTypeID id = ffi_checkctype(L, cts, NULL); | |
+ printf("my type is %d\n", id); | |
CType *ct = ctype_raw(cts, id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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! | |
199.16.158.106 twitter.com | |
199.16.158.106 m.twitter.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import time | |
def rfc822(s): | |
_ = re.findall("[A-z][a-z]+,\s*([^\+G]+)(?:$|\s([\+\-]*)(\d+|GMT))", s) | |
if not s: | |
print("%s is not RFC822 Date" % s) | |
return 0 | |
dt, sgn, tz = _[0] | |
if tz == "GMT": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
from __future__ import print_function | |
import os | |
import sys | |
import struct | |
import math | |
TAG_TYPE = { | |
18:'SCRIPT', | |
9:'VIDEO', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import time | |
cmt = open('export.json').read() | |
cmt = json.loads(cmt) | |
print(len(cmt['comments'])) | |
blk = set(( | |
'=======', | |
'~~~~~~~~~~~~' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
ssl_certificate certs/default.crt; | |
ssl_certificate_key certs/default.key; | |
server_name phiclouds.phicomm.com; | |
access_log /var/log/nginx/weather-access.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\[033[1;37;41m FBI WARNING \[033[0m | |
Federal law provides severe civil and criminal penalties for | |
the unauthorized reproduction,distribution,or exhibition of | |
copyrighted motion prictures(Title 17,United States Code, | |
Sections 501 and 508).The federal bureau of Investigation | |
investigate allegations of criminal copyright infringement. | |
(Title 17,United States Code,Section 506) | |