>>> class Test:
... def a(self, first):
... print(first)
...
>>> import copy
>>> Test2 = copy.deepcopy(Test)
>>> Test2.a is Test.a
True
>>> copy.copy(Test.a) is Test.a
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
| # SPDX-FileCopyrightText: 2025 geisserml <geisserml@gmail.com> | |
| # SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause | |
| import functools | |
| class finally_decorator: | |
| def __init__(self, callback): | |
| self._callback = callback | |
In the course of this process, you will download several apps from external sources. To be on the safe side, you'll want to check each APK with https://www.virustotal.com/ before installation. You are also encouraged to use Firefox with uBlockOrigin and the Badware Risks filter list enabled, as a precaution against scamming sites.
- Install ReVanced Manager from https://github.com/ReVanced/revanced-manager/releases/latest or https://revanced.app/download
- Open ReVanced Manager (grant permission to install apps when asked for). Tap
Patches -> Select an app. Look for YouTube and theSuggested:version. It should be in the 3rd line. (Do not use the 1st line, that's your installed version of YouTube.) - Go to https://www.apkmirror.com/ and search for
YouTube $VERSION, where$VERSIONis the suggested version you have determined in (2). (Alternatively, tap on theSuggested: ...field to do a browser search that may lead you to the apkmirror site in question.) Once you've found the right APK, downlo
- F-Droid
- Firefox (with uBlockOrigin and Dark Reader)
- Thunderbird (K9 Mail), (FreeMail)
- VLC, KeePassDX, KDE Connect
- NewPipe, LibreTube, YTDLnis, Seal
- Signal, Wire
- Termux
- AdAway
- Magisk/Zygisk, TWRP +? Zygisk Assistant or similar
- LineageOS
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
| #! /usr/bin/env python3 | |
| # SPDX-FileCopyrightText: 2026 mara004 <geisserml@gmail.com> | |
| # SPDX-License-Identifier: BSD-2-Clause | |
| import sys | |
| import shlex | |
| from pathlib import Path | |
| from importlib import import_module | |
| from importlib.metadata import entry_points |
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
| ghostscript: | |
| - handle formats | |
| pdfjs: | |
| - File a bug report at node-canvas asking to expose cairo_image_surface_create_for_data() | |
| priv: | |
| - Write a hosts file management script (using Steven Black's hosts) | |
| local: |
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
| # Four lines intentionally left blank | |
| # SPDX-FileCopyrightText: 2025 geisserml <geisserml@gmail.com> | |
| # SPDX-License-Identifier: MPL-2.0 OR GPL-3.0-or-later | |
| # Note that Ghostscript is AGPL-licensed, so this code is altogether affected by copyleft | |
| # Written with Ghostscript 9.56.1 on Fedora. |
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
| # see also https://wiki.ubuntuusers.de/DVDs_manuell_rippen/#Komplette-Spur-rippen | |
| lsdvd /dev/sr0 # to show available tracks and their length | |
| mplayer dvd://n -dvd-device /dev/sr0 # to preview a track -- where n is the track number (1-based) | |
| mplayer dvd://n -dvd-device /dev/sr0 -v -dumpstream -dumpfile filename.vob # to rip track |
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
| # SPDX-FileCopyrightText: 2024 geisserml <geisserml@gmail.com> | |
| # SPDX-License-Identifier: MPL-2.0 | |
| from string import ascii_uppercase as ALPHABET | |
| N_CHARS, ORD_A = len(ALPHABET), ord("A") # 26, 65 | |
| def idx_to_label(i): | |
| count, remainder = divmod(i, N_CHARS) | |
| char = ALPHABET[remainder] # chr(remainder + ORD_A) |
NewerOlder