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 python | |
import sys | |
import socket | |
import thread | |
import re | |
# DNSQuery class from http://code.activestate.com/recipes/491264-mini-fake-dns-server/ | |
class DNSQuery: | |
def __init__(self, data): |
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 | |
from urllib3.connectionpool import * | |
from urllib3.connectionpool import _Default, _encode_target | |
from requests.adapters import HTTPAdapter | |
class FixedHTTPConnectionPool(HTTPConnectionPool): | |
_url = '' | |
def __init__(self, *args, **kwargs): |
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 dbus | |
import os | |
import glob | |
import copy | |
import json | |
import sys | |
from xml.dom import minidom | |
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
# Bilibili TV Controller | |
# | |
# Requirements | |
# - qrencode_ascii | |
# - zio | |
import threading | |
import json | |
import time | |
import logging |