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 \
@mary-ext
mary-ext / bluesky-osa.md
Last active December 12, 2025 02:20
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

@lfhbento
lfhbento / userscript.js
Last active November 25, 2025 18:02 — 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.
@noaione
noaione / amznCover.bookmarklet.js
Created September 22, 2023 01:41
books storefront cover ripping scriplet as a browser bookmark. Most of the time it open a new tab because I'm retarded.
javascript:void%20function(){function%20t(t,n){const%20e=t%20instanceof%20Blob,r=e%3FURL.createObjectURL(t):t,o=document.createElement(%22a%22);o.href=r,o.download=n,o.target=%22_blank%22,o.rel=%22noopener%20noreferrer%22,o.dispatchEvent(new%20MouseEvent(%22click%22)),e%26%26URL.revokeObjectURL(r)}var%20n=Uint8Array,e=Uint16Array,r=Uint32Array,o=new%20n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new%20n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=function(t,n){for(var%20o=new%20e(31),i=0;i%3C31;++i)o[i]=n+=1%3C%3Ct[i-1];var%20a=new%20r(o[30]);for(i=1;i%3C30;++i)for(var%20c=o[i];c%3Co[i+1];++c)a[c]=c-o[i]%3C%3C5|i;return[o,a]},c=a(o,2),l=c[0],s=c[1];l[28]=258,s[258]=28,a(i,0);for(var%20h=new%20e(32768),f=0;f%3C32768;++f){var%20u=(43690%26f)%3E%3E%3E1|(21845%26f)%3C%3C1;u=(61680%26(u=(52428%26u)%3E%3E%3E2|(13107%26u)%3C%3C2))%3E%3E%3E4|(3855%26u)%3C%3C4,h[f]=((65280%26u)%3E%3E%3E8|(255%26u)%3C%3C8)%3E%3E%3E1}var%20d=new%20n(288);for(f=0;f%3C144;++f)d[f]
@tyanyaw
tyanyaw / clean-docker-for-mac.sh
Created September 2, 2023 10:20
Cleaning Docker.raw on Mac OS
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@noaione
noaione / guide_to_ln_manga_offline_reading.md
Last active December 7, 2025 09:54
A guide to help you get the best quality for offline reading. (Not including Translation)