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
#SingleInstance | |
global mode := 0 | |
SendMode Input | |
$CapsLock:: | |
KeyWait, CapsLock, T0.5 | |
If ErrorLevel | |
{ |
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 os | |
import json | |
import subprocess | |
import tabulate | |
import click | |
from tqdm import tqdm | |
from PyMongoWrapper import QueryExprInterpreter, QueryExprEvaluator | |
BW_CLI = "./bw" if os.path.exists("bw") else os.environ.get("BW_CLI") |
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 flask import Flask, request, send_file, jsonify | |
from threading import Thread | |
import wget | |
import os, re | |
ipfsserv = 'http://localhost:8080/ipfs/' | |
outdir = './' | |
app = Flask(__name__) | |
downloads = {} |
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
// ==UserScript== | |
// @name De-tab Twitter | |
// @namespace https://whizvox.me | |
// @version 1.1.1-1 | |
// @downloadURL https://gist.githubusercontent.com/whizvox/2c5eb769c29576bdf4173ac2ee58445a/raw/38eba91a8c3da6da262de56bcd6ce712e153af04/detabtwt.js | |
// @description Removes "For You" and "Following" tabs, as well as selecting "Following" upon page load | |
// @author whizvox | |
// @match https://twitter.com/home | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant nonejs |
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 os | |
from email import message_from_bytes | |
from email.message import Message | |
from dptrp1 import dptrp1 | |
from io import BytesIO | |
import smtpd | |
import asyncore | |
class FakeSMTPServer(smtpd.SMTPServer): |
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/python3 | |
import socket | |
from threading import Thread | |
import select | |
import subprocess | |
import time | |
import click | |
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
{ | |
"translatorID": "433c846d-0a4e-4ae8-9c36-fd6624b07614", | |
"label": "Library LibGen", | |
"creator": "zhuth", | |
"target": "^https?://library\\.lol/main/", | |
"minVersion": "5.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": true, | |
"translatorType": 4, |
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 datetime | |
import os | |
import cv2 | |
import time | |
import readchar | |
d = datetime.datetime.now().strftime('%Y%m%d%H%M%S') | |
if not os.path.exists(d): | |
os.mkdir(d) |
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 fitz | |
import re | |
def remove_spaces(text): | |
text = re.sub(r'[\s\n]+', ' ', text) | |
text = re.sub(r'([\u4e00-\u9fa5,]{1})\s+([\u4e00-\u9fa5,]{1})', '\1\2', text) | |
return text |
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
// ==UserScript== | |
// @name bilibili/B站/mooc/慕课倍速控制优化 | |
// @namespace https://gist.github.com/zhuth/641f7ac1ad6d7d9ba82d887ae06c75fb | |
// @version 2.0.1 | |
// @description '+'、'-'控制倍速;'alt'+'[1-9]' 选择快速选择整数倍速 | |
// @author Asea Q:569389750; zhuth | |
// @match https://*/* | |
// @grant none | |
// @license GPL-3.0-only | |
// ==/UserScript== |
NewerOlder