Aria2 auto build scripts with custom patch for appveyor ci with msys2.
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 subprocess | |
import threading | |
from queue import Queue | |
tailq = Queue(maxsize=10) | |
def tail(filename): | |
p = subprocess.Popen( | |
['tail', '-f', filename], # args |
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 gwdang | |
// @name:zh-CN 购物党自动比价工具-领取淘宝内部券 | |
// @namespace no | |
// @description [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 | |
// @description:zh-CN [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 | |
// @run-at document-idle | |
// @version 3.0.4 | |
// @require https://browser.gwdang.com/get.js?f=/js/gwdang_extension.js | |
// @grant none |
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 | |
# support python 3.5 or later, use python standard library only | |
import asyncio | |
import ssl | |
async def dial(client_conn, server_conn): | |
async def io_copy(reader, writer): |
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
#!/bin/sh | |
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 # 1G | |
sudo chmod 0600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo /swapfile none swap sw 0 0 | sudo tee -a /etc/fstab |
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
一丁七万丈三上下不与丏丐丑专且丕 | |
世丘丙业丛东丝丞丢两严丧个丫中丰 | |
串临丸丹为主丽举乂乃久么义之乌乍 | |
乎乏乐乒乓乔乖乘乙乜九乞也习乡书 | |
乩买乱乳乸乾了予争事二亍于亏云互 | |
亓五井亘亚些亟亡亢交亥亦产亨亩享 | |
京亭亮亲亳亵亶亸亹人亿什仁仂仃仄 | |
仅仆仇仉今介仍从仑仓仔仕他仗付仙 | |
仝仞仟仡代令以仨仪仫们仰仲仳仵件 | |
价任份仿企伈伉伊伋伍伎伏伐休众优 |
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 asyncio | |
import logging | |
from asyncio import StreamReader, StreamWriter, StreamReaderProtocol | |
from typing import Optional | |
import socks | |
logging.basicConfig(level=logging.INFO) | |
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 asyncio | |
import logging | |
import re | |
from asyncio import StreamReader, StreamWriter, StreamReaderProtocol | |
from collections import namedtuple | |
from typing import Optional | |
import socks # use pysocks | |
logging.basicConfig(level=logging.INFO) |
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
<?php | |
// Phabricator 中文翻译 | |
// | |
// 安装位置: {phabricator_root}/src/extension/PhabricatorSimplifiedChineseTranslation.php | |
// | |
// Ref: https://github.com/arielyang/phabricator_zh_Hans | |
final class PhabricatorSimplifiedChineseTranslation extends PhutilTranslation { | |
public function getLocaleCode() { | |
return 'zh_Hans'; |