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
@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;
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 / 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 / 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'],