This file contains hidden or 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/python | |
# -*- coding: utf-8 -*- | |
import os,time,shutil,sys | |
import exifread | |
folder = os.path.join(os.path.dirname(__file__), "a") | |
for fname in os.listdir(folder): | |
fpath = os.path.join(folder,fname) | |
sys.stdout.write(u"\r正在处理 %s" % fpath) |
This file contains hidden or 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 python | |
#coding: utf-8 | |
import requests | |
import json,time,os | |
REQURL = 'https://api.cloudsightapi.com/image_requests' | |
RESPURL = 'https://api.cloudsightapi.com/image_responses' | |
headers = {"Authorization":"CloudSight 39OOYyT553WHpEPlo2Ehcw00", |
This file contains hidden or 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 python | |
# -*- coding:utf8 -*- | |
import time,os,sys | |
newtime = time.time() | |
for root,dirs,files in os.walk(os.path.dirname(__file__)): | |
for name in files: | |
filepath = os.path.join(root, name) | |
os.utime(filepath, (newtime,newtime)) | |
sys.stdout.write(u"\r正在处理 %s...%s" % (filepath.decode('gbk')[:35-len(name)],filepath.decode('gbk')[-len(name)-35:])) |
This file contains hidden or 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
using System.ComponentModel; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Media; | |
namespace Sayuri.Windows { | |
public static class GridViewSort { | |
class SortIcon : Adorner { |
This file contains hidden or 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 requests,re | |
headers = {'User-Agent': 'Mozilla/4.0', | |
'Accept-Language':'en-US,en;q=0.8', | |
'Accept-Encoding':'gzip, deflate, sdch', | |
'Cache-Control': 'max-age=0', | |
'Accept': 'text/html;q=0.9,*/*;q=0.8' | |
} |
This file contains hidden or 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 python | |
# coding:utf-8 | |
__version__ = '1.0.0' | |
try: | |
import gevent | |
import gevent.queue | |
import gevent.monkey | |
gevent.monkey.patch_all() |
This file contains hidden or 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(m) { | |
function g(e) { | |
try { | |
if (navigator.plugins && navigator.plugins.length) | |
for (var t = 0; t < navigator.plugins.length; t++) { | |
var n = navigator.plugins[t]; | |
if (n.name.indexOf(e) >= 0) | |
return n.name + (n.description ? "|" + n.description : "") | |
} | |
} catch (r) {} |
This file contains hidden or 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 python | |
# coding:utf-8 | |
import requsts | |
import imghdr, json | |
''' this file is in package DEMO folder ''' | |
def Say(parameters, start_response): | |
s = { |
This file contains hidden or 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
upstream google { | |
server 210.158.146.160:443 max_fails=3; | |
server 210.158.146.161:443 max_fails=3; | |
server 210.158.146.162:443 max_fails=3; | |
server 210.158.146.163:443 max_fails=3; | |
server 210.158.146.164:443 max_fails=3; | |
server 210.158.146.165:443 max_fails=3; | |
# add more google ip | |
} | |
server { |
This file contains hidden or 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 bash | |
# === open bbr mode for linux === | |
yum -y install kernel-ml grub2 | |
yum install -y kernel-ml | |
cat >>/etc/sysctl.conf << EOF | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr | |
EOF |