This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from pathlib import Path | |
| import pikepdf | |
| from pikepdf import Array, ContentStreamInstruction, Dictionary, Name, Operator | |
| try: | |
| file_path = sys.argv[1] | |
| except IndexError: | |
| print("Usage: python3 pdf-separation-black.py <pdf-file>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This should be run second | |
| import json | |
| import subprocess as sp | |
| from pathlib import Path | |
| import pydantic | |
| class DpiPrecalculation(pydantic.BaseModel): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Needs Python 3.10+ | |
| Usage: | |
| ```py | |
| from ttml_parser import ttml_to_lrc | |
| ttml_data = "<tt>...</tt>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # dependencies = [ | |
| # "mutagen", | |
| # ] | |
| # /// | |
| # run with `uv run uma-pl-gen.py` on the same root folder as all the albums folders | |
| from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import tomllib | |
| from base64 import b64decode | |
| from datetime import datetime | |
| from io import BytesIO | |
| from pathlib import Path | |
| import requests | |
| import tomli_w | |
| from PIL import Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Quickly retag multiple m4a files in folders from Apple Music | |
| This is mainly used since my storefront is not JP and I want the original JP metadata | |
| and not translated version of it. | |
| Need to be installed: | |
| - orjson | |
| - requests | |
| - mutagen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Put this in your settings.json (Ctrl+Shift+P -> Preferences: Open User Settings (JSON)) | |
| "editor.tokenColorCustomizations": { | |
| "[Rosé Pine Moon]": { | |
| "textMateRules": [ | |
| { | |
| "name": "Rust namespace", | |
| "scope": [ | |
| "entity.name.namespace.rust", | |
| "entity.name.namespace", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import re | |
| import sys | |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| from typing import Literal | |
| import aiofiles | |
| import aiohttp | |
| import orjson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Nyaa Always Dark | |
| // @namespace noaione-nyaa-script | |
| // @version 0.1.0 | |
| // @description Force always darkmode | |
| // @author N4O | |
| // @match https://nyaa.si/* | |
| // @match https://sukebei.nyaa.si/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=nyaa.si | |
| // @grant GM.getValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| yt-dlp --cookies ../cookies.txt -f "bestvideo[ext=mp4]+bestaudio[ext=webm]/bestvideo+bestaudio/best" -o "[%(upload_date)s] %(title)s.%(ext)s" --merge-output-format mkv $1 |
NewerOlder