Skip to content

Instantly share code, notes, and snippets.

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

Outvi V outloudvi

🌷
…なんてね。
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@outloudvi
outloudvi / draw_spine_atlas_regions.py
Created October 3, 2023 14:45
Draw areas in an atlas image.
from PIL import Image, ImageDraw
def parse_atlas_data(text):
lines = text.split("\n")
line_id = 0
items = []
meta = {}
curr_item = None
meta_read = False
while line_id < len(lines):
@outloudvi
outloudvi / README.txt
Last active April 16, 2023 02:55
Keyoxide Signature Profiles
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Visit this page at https://ovv.im/sig
Verify this profile at https://keyoxide.org/sig
proof=dns:outv.im
proof=https://mk.outv.im/notes/9bh4ciud3g
proof=https://gist.github.com/outloudvi/aa7b25657eae3d3114b8ce78ba0beb2e
proof=https://news.ycombinator.com/user?id=outloudvi
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 February 17, 2022 15:04
<YTLink YtId="4_wrJAXEMng" YtTime={42} />
@outloudvi
outloudvi / index.html
Created February 3, 2022 06:06
Getting a Spotify refresh_token
<!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 January 22, 2022 15:29
Get songs of DENONBU from the official Spotify playlist.
/**
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 = ''
const HOSHIMI = '星見プロダクション'
const LN = 'LizNoir'
const TY = 'TRINITYAiLE'
const MANA = '长濑麻奈'
const SUNNYP = 'サニーピース'
const TSUKI = '月のテンペスト'
const alb = [
{
ti: ['IDOLY PRIDE(歌曲)', 'IDOLY PRIDE'],
// 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 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'