- 私有Repo需要付费
- 私有协作需要付费
- 托管空间512MB
- 300K - 500K
- 工单 & Wiki
- Pages 服务
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 requests | |
import socket | |
import time | |
socket.setdefaulttimeout(10) | |
TIMEOUT=60 | |
params = { | |
"login_email"="[email protected]", | |
"login_password"="yourpassword", | |
"format"="json", |
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 threading | |
import queue | |
import sys | |
import requests | |
import json | |
import re | |
from bs4 import BeautifulSoup as bs | |
class multidown(object): | |
def __init__(self,data,method=None): | |
self.data = queue.Queue() |
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 | |
import requests | |
from bs4 import BeautifulSoup as bs | |
import re | |
import xmlrpc.client | |
import sys | |
import xml.etree.ElementTree as et | |
""" | |
Usage: python 163.py <url of the content> |
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
# Here c refer to content ,p refer to the pointer | |
# or the length of parsed text | |
DEBUG = True | |
decode_func = {} | |
def print_debug(fn): | |
def wrapper(c,p): | |
if DEBUG: | |
print(fn.__name__) |
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 sys | |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
import time | |
import concurrent.futures | |
import random | |
import json | |
import os | |
import re |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
body{ | |
margin:0; | |
} | |
.wrapper{ | |
margin: auto; |
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
class Redirector(StaticFileHandler): | |
def initialize(self, path, default_filename=None): | |
root, self.filename = os.path.split(path) | |
super(Redirector, self).initialize(root) | |
@coroutine | |
def get(self, include_body=True): | |
yield super(RedirectStaticFileHandler, self).get(self.filename, include_body) |
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
algos=$(find /lib/modules/`uname -r` -type f -name "*.ko" | sed -n "s/.*ipv4\/tcp_\(\w*\)\..*/\1/p" | sort -u) | |
server="XXX.XXX.XX.XXX" | |
filesize="10M" | |
for i in $algos | |
do | |
echo "Test $i"; | |
sudo modprobe tcp_$i; | |
for t in {1..3} | |
do |
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 peewee import Model | |
from playhouse.db_url import connect | |
db = connect(os.env.get('DATABASE') or options.database) | |
class BaseModel(Model): | |
@classmethod | |
def try_get(cls, **kwargs): |
OlderNewer