Skip to content

Instantly share code, notes, and snippets.

View abrugiolo's full-sized avatar

Amanda Brugiolo abrugiolo

  • Juiz de Fora, MG
View GitHub Profile
@JonnyWong16
JonnyWong16 / mark_watched.py
Last active November 27, 2023 17:12
Automatically mark a video (movie, show, season, or episode) as played in Plex for a specific users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Automatically mark a video (movie, show, season, or episode)
# as played in Plex for specific users.
# Author: /u/SwiftPanda16
# Requires: plexapi
#
# Tautulli script trigger:
# * Notify on watched
@JonnyWong16
JonnyWong16 / plex_imdb_top_250_collection.py
Last active March 6, 2024 14:13
Automatically create an IMDB Top 250 collection in Plex using an existing movie library
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
#
# Automated IMDB Top 250 Plex collection script by /u/SwiftPanda16
#
# *** Use at your own risk! ***
# *** I am not responsible for damages to your Plex server or libraries. ***
#
#------------------------------------------------------------------------------
@jherax
jherax / arrayFilterFactory.1.ts
Last active February 20, 2025 05:05
Filters an array of objects with multiple match-criteria.
type FilterOperator = 'AND' | 'OR';
type FiltersBy<T> = {
[K in keyof T]?: (value: T[K]) => boolean;
};
/**
* Factory function that creates a specialized function to filter
* arrays, by validating all filters (AND operator),
* or validating just one of the filters (OR operator).
* @param operator Method to validate all filters: AND, OR