Skip to content

Instantly share code, notes, and snippets.

View louisroyer's full-sized avatar

Louis Royer louisroyer

View GitHub Profile
@louisroyer
louisroyer / findkara.sh
Created April 16, 2024 19:46
Find KM karaoke title from kid
#!/usr/bin/env bash
set -x
find ~/KaraokeMugen/repos/kara.moe/json/karaokes/ -type f -name '*.kara.json' \
-exec jq --arg kid $1 '.data | select(.kid==$kid) | .titles' {} +
@louisroyer
louisroyer / anime-summer-2024.md
Last active May 23, 2026 15:55
Anime OP/ED missing from the Summer 2024 playlist

Anime OP/ED missing from the Summer 2024 playlist.

  • "Oshi no Ko Season 2"
    • OP: Fatale
    • ED: Burning
  • 2.5-jigen no Ririsa
    • OP1: Shutter Chance
    • ED1: Watch Me
  • Atri: My Dear Moments
  • OP: Ano Hikari
#!/usr/bin/env python3
import os
for filename in os.listdir('.'):
with open(filename, 'r', encoding='utf8') as f:
playresx = None
playresy = None
size = []
for line in f:
if line.startswith('PlayResX: '):
@louisroyer
louisroyer / anime-fall-2024.md
Last active April 11, 2026 16:31
Anime OP/ED missing from the Fall 2024 playlist

Anime OP/ED missing from the Fall 2024 playlist.

  • 2.5-jigen no Ririsa
    • OP2: Tsugihagi no Tsubasa
    • ED2: Release Sigh
  • Acro Trip:
    • OP: Fragum
    • ED: Reversible Baby
  • Amagami-san Chi no Enmusubi
  • OP: Yawaku Koishite ~Zutto Bokura de Iraremasu You ni~
@louisroyer
louisroyer / resolution.py
Last active March 21, 2026 21:28
Resolution of karaokes from kara.moe
#!/usr/bin/env python3
'''Get stats about resolution of .ass'''
import datetime
import os
import subprocess
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from xdg import xdg_data_dirs
import yaml
@louisroyer
louisroyer / anime-winter-2025.md
Last active March 25, 2026 18:22
Anime OP/ED missing from the Winter 2025 playlist

Anime OP/ED missing from the Winter 2025 playlist.

  • A-Rank Party wo Rdatsu shita Ore wa, Moto Oshiego-tachi to Meikyuu Shinbu wo Mezasu.
    • OP: Enter
    • ED1: Treasure Chest
    • ED2: MIRROR
  • Akuyaku Reijou Tensei Ojisan
    • OP: Choose!!!
    • ED1: Matsuken Samba II
  • ED2: THE GALAXY EXPRESS 999
@louisroyer
louisroyer / anime-spring-2025.md
Last active April 5, 2026 20:22
Anime OP/ED missing from the Spring 2025 playlist

Anime OP/ED missing from the Spring 2025 playlist.

  • Aharen-san wa Hakarenai S2
    • OP: Binetsuma
    • ED: Twilight
  • Anne Shirley
    • OP: Yokan
    • ED: heart
  • Ansatsu Kyôshitsu (Rebroadcast)
  • OP: Kiiro Shingou
local tr = aegisub.gettext
script_name = tr"Trim karaoke lines"
script_description = tr"Remove first and last k-tags and adjust start and end times accordingly"
l_script_description = tr"Remove first k-tag and adjust start time accordingly"
l_script_name = tr"Trim karaoke lines - Left"
r_script_name = tr"Trim karaoke lines - Right"
r_script_description = tr"Remove last k-tag and adjust end time accordingly"
@louisroyer
louisroyer / anime-summer-2025.md
Last active July 13, 2026 14:29
Anime OP/ED missing from the Summer 2025 playlist

Anime OP/ED missing from the Summer 2025 playlist.

  • 9: Ruler's Crown
    • OP: ResoNAnce
    • ED: Pale Blaze
  • Ame to Kimi to
    • OP: Ame to
    • ED: filled
  • Arknights: Rise from Ember
  • OP: End of Days
@louisroyer
louisroyer / synched-off-vocal.py
Created July 28, 2025 08:21
Check for synched off-vocal versions
#!/usr/bin/env python3
'''Check for synched off-vocal versions'''
import os
import sys
import hashlib
import json
BUF_SIZE = 65535
OFF_VOCAL_TAG = 'c0cc87b9-55b9-40f0-878a-fbb9e34c151e'