Skip to content

Instantly share code, notes, and snippets.

@tempoguyx
tempoguyx / dmm-dupe-delete.js
Created February 16, 2024 15:33
Delete duplicates in Debrid Media Manager
// this should run only on this page.
// https://debridmediamanager.com/library?status=sametitleorhash&page=1
// open browser console (ctrl+ shift + I), paste this script.
const deleteDupe = async (el = document) => {
let items = el.querySelectorAll('table.w-full tr.align-middle');
let sleep = async (ms) => await new Promise(resolve => setTimeout(resolve, ms));
for (let i = 0; i < items.length; i++) {
let deleteButton = el.querySelector("#__next > div > div:nth-child(7) > table > tbody > tr:nth-child(1) > td.px-1.py-1.flex.place-content-center > button.cursor-pointer.mr-2.mb-2.text-red-500");
@xbmcnut
xbmcnut / shelly_pir.yaml
Last active June 26, 2025 03:37
Making an outdoor motion sensor smart using a Shelly 1
/**
* I figured out you can fit a Shelly 1 inside the case of many outdoor motion sensors.
* Coupled with that fact that recently, Shelly added a feature to de-couple the switch from the relay
* so they act independently, makes this a great combo! Simply wire the output of the PIR motion sensor
* (the wire that normally goes to your outdoor light) to the switch input of the Shelly and wire
* the lightbulb to the L output of the Shelly. Then, in the Shelly app or directly via the devices webpage,
* select the button type as 'Detached Switch' and use the code below to make it work normally.
* Don't forget to adjust the daylight sensitivity to full daylight if you want the motion detection to work 24/7.
*/
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active March 4, 2026 08:01 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.