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
#!/usr/bin/env python3 | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from io import BytesIO | |
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
print('======= headers =======') |
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 -*- | |
import re | |
TCVN3TAB = "µ¸¶·¹¨»¾¼½Æ©ÇÊÈÉË®ÌÐÎÏѪÒÕÓÔÖ×ÝØÜÞßãáâä«åèæçé¬êíëìîïóñòô-õøö÷ùúýûüþ¡¢§£¤¥¦" # NOQA | |
TCVN3TAB = [ch for ch in TCVN3TAB] | |
UNICODETAB = "àáảãạăằắẳẵặâầấẩẫậđèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵĂÂĐÊÔƠƯ" # NOQA | |
UNICODETAB = [ch for ch in UNICODETAB] |
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
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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
118.70.74.xx - - [29/Jun/2015:10:15:53 +0700] "GET /wp-content/uploads/2012/11/KFC-H%C3%A0-N%E1%BB%99i10-300x300.jpg HTTP/1.0" 404 112214 "http://domain.vn/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" | |
118.70.74.xx - - [29/Jun/2015:10:15:53 +0700] "GET /wp-content/uploads/2014/05/Ngam-ho-Tay-lang-man-tai-nha-hang-Le-Petit-Bruxelles-%E2%80%93-domain.vn_.jpg HTTP/1.0" 404 112490 "http://domain.vn/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" | |
118.70.74.xx - - [29/Jun/2015:10:15:53 +0700] "GET /wp-content/uploads/2014/05/Nh%C3%A0-h%C3%A0ng-S%C6%B0-T%E1%BB%AD-Beer-300x254.jpg HTTP/1.0" 404 112316 "http://domain.vn/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" | |
118.70.74.xx - - [29/Jun/2015:10:15:53 +0700] "GET /wp-content/uploads/2014/05/Kham-pha-van-hoa-Bi-tai-nha-hang-SBB-club |
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
#libavutil 54. 18.100 / 54. 18.100 | |
# libavcodec 56. 21.102 / 56. 21.102 | |
# libavformat 56. 19.101 / 56. 19.101 | |
# libavdevice 56. 4.100 / 56. 4.100 | |
# libavfilter 5. 9.104 / 5. 9.104 | |
# libswscale 3. 1.101 / 3. 1.101 | |
# libswresample 1. 1.100 / 1. 1.100 | |
# libpostproc 53. 3.100 / 53. 3.100 | |
sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev yasm |
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 multiprocessing | |
from StringIO import StringIO | |
import gzip | |
import csv | |
from random import shuffle | |
import numpy as np | |
import json | |
from time import sleep | |
import pymongo | |
import datetime |
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 time | |
import random | |
import csv | |
import pandas as pd | |
import pickle | |
import random | |
import datetime | |
import os | |
import re | |
from itertools import izip_longest |
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 time | |
from selenium import webdriver | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.common.action_chains import ActionChains | |
import random | |
import csv | |
import pandas as pd | |
import pickle | |
import random |
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 mechanize | |
import cookielib | |
import urlparse | |
import re | |
import time | |
import random | |
import csv | |
import pandas as pd | |
import pickle | |
import random |