Skip to content

Instantly share code, notes, and snippets.

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

Outvi V outloudvi

🌷
…なんてね。
View GitHub Profile
-----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
@outloudvi
outloudvi / preserve-vsc-customization.hook
Created December 16, 2019 09:59
Preserve writable permission for CSS of VSC workbench for background modifications (like https://github.com/shalldie/vscode-background). For Arch Linux (and maybe Manjaro?). This should be put in /etc/pacman.d/hooks .
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = code
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
@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 / index.js
Last active November 28, 2022 18:54
Source for @vivid_join_msg_clean_bot.
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;