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
<html> | |
<title>Welcome to Jinxu's paste Server</title> | |
<link href="https://fonts.googleapis.com/css?family=Montserrat:400" rel="stylesheet"> | |
<body style="font-family: 'Montserrat', sans-serif;"> | |
<div style="margin-left: 35%"> | |
<h2>Usage</h2> | |
<p>cat file.txt | nc p.fht.im 9999 | |
<p> | |
<p>or add a alias</p> | |
<p>echo 'alias pt="nc p.fht.im 9999"' >> .bashrc</p> |
This file has been truncated, but you can view the full file.
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
《白玉老虎》查看《白玉老虎》书评和最新更新以及相关书籍推荐请到《白玉老虎》专题网址http://www.xiaoshuotxt.com/wuxia/1813/ | |
TXT小说天堂 http://www.xiaoshuotxt.net,最有文艺气息的文学网站,提供经典的文学名著、武侠小说、言情小说、人文社科类书籍在线阅读,所有TXT电子书手机免费下载阅读,我们提供给您的小说不求最多,但求最经典最完整 | |
第一部 黄道吉日 第一章 夺命更夫 | |
小说t-xt天堂 | |
三月二十七日,大吉。 | |
诸事皆宜。 |
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 base64 | |
import sys | |
import uuid | |
from io import BytesIO | |
from PIL import Image | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options |
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 | |
# code by Lucifer | |
# Date 2017/10/22 | |
import re | |
import sys | |
import socket | |
import base64 | |
import httplib |
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
{ | |
"products": [ | |
{ | |
"name": "eYou", | |
"banner": { | |
"http_banner": "亿邮电子邮件系统,亿邮邮件整体解决方案" | |
} | |
}, | |
{ | |
"name": "anymacro", |
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
>>> import urlparse | |
>>> url = 'http://stackoverflow.com/questions/1234567/blah-blah-blah-blah' | |
>>> urlparse.urljoin(url, '/') | |
'http://stackoverflow.com/' | |
# source: https://stackoverflow.com/a/32214840/8591480 |
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/python3 | |
# coding=utf-8 | |
import re | |
SSURT_RE = r""" | |
\A | |
(?P<scheme> [a-zA-Z] [a-zA-Z0-9+.-]* : )? | |
(?P<authority> | |
(?P<slashes> /* ) |
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
from flask import Flask | |
from flask import request | |
app = Flask(__name__) | |
from flask import send_file | |
from selenium import webdriver | |
import hashlib | |
from selenium.webdriver.common.keys import Keys | |
import datetime |
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
# 并发查询所有上游DNS服务器 | |
all-servers | |
# 本地DNS缓存最小有效期 | |
min-cache-ttl=3600 | |
# 本地DNS缓存数目 | |
cache-size=65535 | |
# 上游DNS服务器, 可设置多个 | |
server=8.8.4.4 | |
#server=8.8.8.8 | |
server=114.114.114.114 |
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
def get_count(q): | |
count_q = q.statement.with_only_columns([func.count()]).order_by(None) | |
count = q.session.execute(count_q).scalar() | |
return count | |
q = session.query(TestModel).filter(...).order_by(...) | |
# Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ... | |
print q.count() |