Skip to content

Instantly share code, notes, and snippets.

View RicterZ's full-sized avatar
😤
Hacked by Ricter Z

Ricter Zheng RicterZ

😤
Hacked by Ricter Z
View GitHub Profile
@RicterZ
RicterZ / SimpleDNSServer
Last active August 29, 2015 14:14
SimpleDNSServer
#!/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):
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):
import dbus
import os
import glob
import copy
import json
import sys
from xml.dom import minidom
@RicterZ
RicterZ / bilibili-tv.py
Last active January 14, 2023 09:40
Bilibili TV Controller written by Python
# Bilibili TV Controller
#
# Requirements
# - qrencode_ascii
# - zio
import threading
import json
import time
import logging