Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:22.04 AS builder
# Install essential tools and dependencies (excluding libfdk-aac-dev)
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt/lists \
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates wget sed git && \
sed -i 's/main$/main universe multiverse/' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
autoconf \
@noaione
noaione / comicgr-dl.py
Created August 15, 2025 09:54
quick tools to download stuff since i hate using hakuneko/haruneko because it's bloated with too many stuff (when I just need downloader)
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
@mary-ext
mary-ext / bluesky-osa.md
Last active May 23, 2026 02:56
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.

This sucks, but thankfully there are ways to work around it.

Before diving in: I encourage you to read this entire document, including the

@qnblackcat
qnblackcat / README.md
Last active May 24, 2026 02:19
Downloading older versions of iOS apps using ipatool

Downloading older versions of iOS apps using ipatool

👉 ipatool is an open-source tool developed by Majd, a highly trustworthy and talented developer in the iOS community. Recently, ipatool got a significant update that allows users to easily download older versions of iOS apps on macOS/Windows/Linux!.

👉 Since ipatool doesn't have a graphical user interface (GUI), some of you might think it's tricky to use. But trust me, it's not! Here's a simple guide if you're still a bit scared of the terminal. (Tbh, everything in this *guide can be found on ipatool's repo)

👉 Note: You need to log into your Apple ID via ipatool for the tool to work. Unless you prioritize security above all, you can trust logging into your Apple account with ipatool. As explained earlier, it’s an open-source tool developed by a well-known and reliable developer, minimizing security risks to the lowest level.

@Vexcited
Vexcited / README.md
Last active May 29, 2026 04:51
Apple Music Downloader on macOS (arm64)
@lfhbento
lfhbento / userscript.js
Last active January 17, 2026 07:15 — forked from spf13/script.js
Download all your Kindle books before Feb 26, 2025
// ==UserScript==
// @name Kindle Download
// @namespace http://tampermonkey.net/
// @version 2025-02-20
// @description Download all your kindle books
// @author You
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksPurchases/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant none
// ==/UserScript==
@noaione
noaione / aone-grab.py
Created July 14, 2024 06:37
use our own custom script to download stuff from asmr.one since their downloader keep OOM-ing for me
import asyncio
import re
import sys
from dataclasses import dataclass
from pathlib import Path
from typing import Literal
import aiofiles
import aiohttp
import orjson
@noaione
noaione / nyaadark.userscript.js
Created June 3, 2024 15:48
can someone turn on the light? no?
// ==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
@noaione
noaione / repack_epub.py
Created November 28, 2023 10:36
quick and dirty script to repair epub that is not properly tagged as EPUB mimetype
# 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
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.