Skip to content

Instantly share code, notes, and snippets.

Avatar
🌷
…なんてね。

Outvi V outloudvi

🌷
…なんてね。
View GitHub Profile
View zhmoegirl-t7salbum.js
const toMwTracklist = (title, tracks) =>
`
{{Tracklist
| headline = ${title}
| all_music =
| all_lyrics =
| longnote_column = no
| singer_credits = yes
${tracks
.map(({ title, singer, note }, index) =>
@outloudvi
outloudvi / YTLink.jsx
Last active Feb 17, 2022
<YTLink YtId="4_wrJAXEMng" YtTime={42} />
View YTLink.jsx
@outloudvi
outloudvi / index.html
Created Feb 3, 2022
Getting a Spotify refresh_token
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OAuth | Spotify</title>
</head>
@outloudvi
outloudvi / denonbu-spotify.mjs
Created Jan 22, 2022
Get songs of DENONBU from the official Spotify playlist.
View denonbu-spotify.mjs
/**
Usage:
1. Get a SPOTIFY_TOKEN (e.g. from kira.vercel.app) and run `deno run --allow-net ./denonbu-tpl.mjs`
2. Import `checkSongs()` from the file and call checkSongs(SPOTIFY_TOKEN).
**/
import fetch from 'https://cdn.skypack.dev/node-fetch@3'
import { table } from 'https://cdn.skypack.dev/table@6.8.0'
// Change this
const SPOTIFY_TOKEN = ''
View tracklist-gen.js
const HOSHIMI = '星見プロダクション'
const LN = 'LizNoir'
const TY = 'TRINITYAiLE'
const MANA = '长濑麻奈'
const SUNNYP = 'サニーピース'
const TSUKI = '月のテンペスト'
const alb = [
{
ti: ['IDOLY PRIDE(歌曲)', 'IDOLY PRIDE'],
View fixnames.js
// 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) {
@outloudvi
outloudvi / PKGBUILD
Created Jul 10, 2020
PKGBUILD for vscode-ssh-askpass-kde.
View PKGBUILD
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'
@outloudvi
outloudvi / index.js
Last active Nov 28, 2022
Source for @vivid_join_msg_clean_bot.
View index.js
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;
@outloudvi
outloudvi / dn42-add.py
Created May 21, 2020
dn42 add nodes for test
View dn42-add.py
#!/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():
View 2020-05-12-tr-flatpak-china-mirror.md

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

  • tech
  • translation

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