title: "试用为中国大陆用户打造的 Flathub 镜像" date: 2020/5/12 tags:
- tech
- translation
{% note %}
本文译自 此处,以 CC BY-SA 4.0 协议发布。
addEventListener("fetch", (event) => { | |
event.respondWith(handleRequest(event.request)); | |
}); | |
const BOT_KEY = "BOT_KEY"; | |
const ALLOW_USER_WITH_USERNAME = true; | |
const PRESERVE_TEXT = false; | |
const BAYES_THERESHOLD = 0.75; |
#!/usr/bin/env python | |
from collections import defaultdict | |
from subprocess import check_output, run, PIPE | |
from os import system | |
SUPPORTED_VPN = ["wireguard"] | |
SUPPORTED_ROUTE = ["bird2"] | |
data = defaultdict(str) | |
def vpn_route_common(): |
title: "试用为中国大陆用户打造的 Flathub 镜像" date: 2020/5/12 tags:
{% note %}
本文译自 此处,以 CC BY-SA 4.0 协议发布。
export interface Alias { | |
name: string, | |
aliases: string[]; | |
} | |
export interface Results { | |
[key: number]: string; | |
} | |
export interface categorizeOptions { |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
* NOTICE * | |
I can't remember if I've ever kept my former GPG private key to Keybase. | |
Due to the fact that Keybase was acquired by Zoom [1], we are changing our main | |
key from: | |
0x 254E B0C5 F08C 4EF4 73F1 9448 E14A 40B7 0A93 0B8B |
# pip install mp3_tagger before | |
from mp3_tagger import MP3File, VERSION_2 | |
from os import listdir | |
from os.path import isfile, join | |
import re | |
import json | |
PATH = "/tmp/songs" |
/* | |
Add this to ~/.config/Typora/themes/github.css (or the name of your theme | |
The background image should be put in the theme directory | |
*/ | |
content::after { | |
content: ''; | |
background-image: url(./github/image.png); /* relate path is required */ | |
height: 250px; /* set by yourself */ | |
width: 200px; /* set by yourself */ |
[Trigger] | |
Type = Package | |
Operation = Install | |
Operation = Upgrade | |
Target = code | |
[Trigger] | |
Type = File | |
Operation = Install | |
Operation = Upgrade |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
I'm Outvi V (GPG:0xE14A40B70A930B8B). | |
I hereby state that, the following devices and keys are used by me in Riot.im: | |
Device ID / Device key | |
ZKUNPSNHIA / db/R kFcd gTFA GVBH mTmZ j0RM Kt3c Uu3m r1PY MpYu Rho |