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 |
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
From 4ef0a621d7b4aa91e81b254435ec1911eaf8e52c Mon Sep 17 00:00:00 2001 | |
From: noaione <[email protected]> | |
Date: Wed, 3 Jan 2024 15:49:59 +0700 | |
Subject: [PATCH] Rework gacha system and make it customizable | |
I would like someone smart enough with math to do the actual calculation | |
and re-rework the gacha system again :) | |
diff --git a/src/main/java/emu/lunarcore/Config.java b/src/main/java/emu/lunarcore/Config.java | |
index 48a5da5..c5c5f76 100644 |
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
function unpatreon() { | |
const KEMONO_DOMAIN = "https://kemono.su"; | |
const url = new URL(window.location); | |
if (!url.hostname.includes("patreon.com")) { | |
alert("This scriptlet only works on patreon.com"); | |
return; | |
} | |
// get id from URL 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
// ==UserScript== | |
// @name Anchira - Meta Fetch | |
// @namespace anchira-meta-fetcher | |
// @match https://anchira.to/* | |
// @grant none | |
// @version 1.1.0 | |
// @author noaione | |
// @description Quick script to add button to scrape the metadata | |
// ==/UserScript== |
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
# Quick script to repair broken epub | |
# Need libmagic and python-magic to work | |
# Use case: | |
import argparse | |
import sys | |
from pathlib import Path | |
from typing import List | |
from zipfile import ZIP_DEFLATED, ZIP_STORED, ZipFile |
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 OTOTOY - No Volume Playback | |
// @namespace n4o-ototoy-script | |
// @match https://ototoy.jp/_/default/p/* | |
// @grant none | |
// @version 1.0 | |
// @author N4O | |
// @description Ensure that you don't get ear-raped when you open an album page and the trial song start blasting. | |
// ==/UserScript== |
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
Upscaling stuff with 4x digimanga v2 and other stuff | |
Downscaling use imagemagick, although I feel like using VapourSynth would be better since I can do a lot more post-processing. | |
Halftones: | |
- magick mogrify -format png -alpha off -colorspace Gray -level 0.2%,100% -filter Catrom -resize xXXXX -monitor -path ./output/ ./input/*.png | |
Gray/Color: | |
- magick mogrify -format png -alpha off -filter RobidouxSharp -resize xXXXX -monitor -path ./output/ ./input/*.png | |
Alpha off and colorspace Gray to force grayscale, level to 0.2% black since black level are not really #000000 sometimes. |
NewerOlder