Skip to content

Instantly share code, notes, and snippets.

@sbogomolov
sbogomolov / authentik-overseerr-auth
Last active July 21, 2025 08:52
Property Mapping for authentik: Overseerr authentication using Plex SSO token
from authentik.sources.plex.models import UserPlexSourceConnection
import json
connection = UserPlexSourceConnection.objects.filter(user=request.user).first()
if not connection:
ak_logger.info("Overseer: No Plex connection found")
return {}
base_url = "http://overseerr.apps:5055"
end_point = "/api/v1/auth/plex"
@sbogomolov
sbogomolov / authentik-tautulli-auth
Last active March 31, 2025 16:27
Property Mapping for authentik: Tautulli authentication using Plex SSO token or username and password
from authentik.sources.plex.models import UserPlexSourceConnection
base_url = "http://tautulli.apps:8181"
end_point = "/auth/signin"
headers = {
"Content-Type": "application/x-www-form-urlencoded",
}
def auth_with_plex():
@acouvreur
acouvreur / sync-unmonitored.sh
Last active January 31, 2025 00:00
Sync deleted files from Radarr/Sonarr
#!/bin/bash
# Find existing files in download/complete that are not in movies or tvshows.
export DOWNLOAD_FOLDER=path/to/downloads
export MOVIES_FOLDER=path/to/movies
export TVSHOWS_FOLDER=path/to/tvshows
findExistingFile() {
file=$(find $MOVIES_FOLDER/ $TVSHOWS_FOLDER/ -samefile "$1")
@alanzeino
alanzeino / new-mac.md
Last active March 11, 2025 17:04
New Mac Setup

All the stuff I do to set up a new Mac

Applications

  • 1Password (hijacks the Snippety window)
  • AirBuddy
  • Amphetamine
  • BlockBlock
  • Cork (much better than Brewer X)
  • CotEditor (fastest text editor with multi–line editing)
  • DaisyDisk
  • Fantastical
According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?
@alok-mishra
alok-mishra / trakt-remove-all-from-collection.js
Last active May 3, 2025 05:36
Remove all items from Trakt collection
// Removes all items from a page of the Trakt collection
// Run script from console of user's collection page
// Must be run on each page
$(".posters .grid-item").each(function() {
actionWatch($(this).closest('.grid-item'), 'collect', true)
})