Skip to content

Instantly share code, notes, and snippets.

@rwirth
rwirth / util.py
Last active August 25, 2017 04:39 — forked from kgriffs/util.py
Deprecated decorator for Python. Uses clever introspection to set a helpful filename and lineno in the warning message, even in complex cases like code being executed via execfile. The warning is properly registered and repeated only once for each 'offending' line (by default).
import functools
import inspect
import warnings
# NOTE(kgriffs): We don't want our deprecations to be ignored by default,
# so create our own type.
class DeprecatedWarning(UserWarning):
pass
@teknikqa
teknikqa / lastfm_delete_loved.js
Created May 7, 2017 06:38
Bulk delete Last.FM scrobbles & loved tracks
// On the Last.FM website go to the page which lists the tracks that you have loved.
// Open Chrome DevTools (or Firefox or any modern browser that has a built in Javacript Console)
// and run the following command.
// This basically clicks on all the delete buttons on the page and reloads the page.
jQuery('.love-button--loved').each(function(_, b) {
b.click();
});
location.reload();
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active November 10, 2024 10:43
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active November 17, 2024 13:01
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

@CommandLeo
CommandLeo / mods.md
Last active September 8, 2024 18:49
CommandLeo's Mods

CommandLeo's 1.20.2 Mods

Libraries

Icon Mod Mod Page Description
Fabric API Modrinth Library required for a lot of mods
Fabric Language Kotlin Modrinth Library required for Zoomify
MaLiLib Modrinth Library required for Masa's mods
MagicLib Modrinth Library required for MasaGadget
OwoLib [Modrinth](https://modrinth.com/
@JoakimThorsen
JoakimThorsen / TMC links.md
Last active November 7, 2024 07:49
An attempt at collecting TMC-related resources, websites, mods, servers, and other links.
@kikugie
kikugie / stdtools.md
Last active May 8, 2024 14:43
Storagetech mod tools