Skip to content

Instantly share code, notes, and snippets.

View outloudvi's full-sized avatar
🌷
…なんてね。

Outvi V outloudvi

🌷
…なんてね。
View GitHub Profile

Prove my code-signing key

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Key `B3F1D975FD10724CB072329BCC2DE4574DE828AA`,
as described at https://github.com/outloudvi/askme/blob/master/key_codesigning.gpg)
from commit `dbbad24f9c8817611579f19995e48e2945fcc02`,
is the code-signing key belonging to Outvi V (outloudvi).
-----BEGIN PGP SIGNATURE-----
@outloudvi
outloudvi / README.md
Created December 18, 2019 13:25
This file briefly analyze your places.sqlite and give you the most-frequently-visited site list.

analyze_places.py

This file briefly analyze your places.sqlite and give you the most-frequently-visited site list.

To find your places.sqlite, visit about:support in your Firefox browser, click "Open Directory" on the line of "Profile Directory", and you will see the file.

@outloudvi
outloudvi / typora-background-image.css
Created January 7, 2020 04:39
Put an background image on the right-bottom (or anywhere else) of Typora.
/*
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 */
# 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"
@outloudvi
outloudvi / sign.0a930b8b.txt.asc
Last active May 8, 2020 03:47
GPG key switch announcement. (E14A 40B7 0A93 0B8B) -> (A725 CB57 CA65 CAFE)
-----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
@outloudvi
outloudvi / categorize.ts
Last active May 9, 2020 16:24
Categorize names in YouTube video descriptions.
export interface Alias {
name: string,
aliases: string[];
}
export interface Results {
[key: number]: string;
}
export interface categorizeOptions {

title: "试用为中国大陆用户打造的 Flathub 镜像" date: 2020/5/12 tags:

  • tech
  • translation

{% note %} 本文译自 此处,以 CC BY-SA 4.0 协议发布。

@outloudvi
outloudvi / dn42-add.py
Created May 21, 2020 08:59
dn42 add nodes for test
#!/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():
@outloudvi
outloudvi / PKGBUILD
Created July 10, 2020 15:51
PKGBUILD for vscode-ssh-askpass-kde.
pkgname=vscode-ssh-askpass-kde
pkgver=0.1.0
pkgrel=0
pkgdesc="Fix VSCode SSH push process for KDE"
arch=('any')
url="https://github.com/microsoft/vscode/issues/57488#issuecomment-636184685"
license=('MIT')
depends=('ksshaskpass')
optdepends=('code: open source build of VSC'
'visual-studio-code-bin: official version of VSC'
// Run this in "vtbs/".
const fs = require('fs')
const FIX_FILENAME = false
const FIX_CONTENTFILENAME = true
async function main() {
const info = fs.readdirSync('.')
for (let filename of info) {