Skip to content

Instantly share code, notes, and snippets.

View p37307's full-sized avatar

Paul Chambers p37307

View GitHub Profile
@skullvalanche
skullvalanche / generate_posters.py
Last active April 16, 2025 07:41 — forked from danielfariati/generate_posters.py
Generate posters for jellyfin
"""
This script generates posters for Jellyfin collections.
It creates a mosaic cover by combining the posters of all items in a collection.
The collection name is displayed in the center of the cover.
"""
import concurrent.futures
import math
from io import BytesIO
from sys import argv
@danielfariati
danielfariati / generate_posters.py
Created February 26, 2025 01:08
Generate posters for jellyfin
import requests
from PIL import Image, ImageDraw, ImageFont, ImageFilter, ImageOps
from matplotlib import font_manager
import math
from io import BytesIO
import concurrent.futures
# --- Configuration ---
# Jellyfin configuration
JELLYFIN_URL = "YOUR_URL" # e.g., "http://localhost:8096"
#!/usr/bin/env bash
#
# Mastodon update script
# v3 (2024.02.18)
#
# Changelog
# * v1 - initial version
# * v2 - added mastodon-bird-ui
# * v3 - added import of temporary email domains
curl -s https://orangebunny.net/api/v1/instance | jq ".stats | [.user_count, .status_count, .domain_count] | @csv"
#!/bin/bash
date "+%m/%d/%Y,"| tr -d '\n' >> ~/mastodon-stats.txt && (curl -s https://orangebunny.net/api/v1/instance | jq ".stats | [.user_count, .status_count, .domain_count] | @csv" | tr -d '\"') >> ~/mastodon-stats.txt
@JPVenson
JPVenson / docs.md
Last active July 19, 2023 13:03
cleanup collections.xml for jellyfin

BEFORE YOU START: BACKUP YOUR CONFIGURATION. YOU. HAVE. BEEN. WARNED!

This is the Cs version of the script posted by michaelkrieger at jellyfin/jellyfin#1907 (comment) to cleanup the collection.xml for missing link entires.

Linux Host

To run this on linus, ensure you have a dotnet version installed.
https://learn.microsoft.com/en-us/dotnet/core/install/linux
or for the most part, this oneliner will install dotnet on your system:

This gist has moved to https://github.com/AndrewBreyen/Jellyfin-TV-Post-Process
This gist has moved to https://github.com/AndrewBreyen/Jellyfin-TV-Post-Process
@ufuk
ufuk / postgresql-export-tables-to-s3-as-csv-file.sh
Last active July 10, 2023 04:04
BASH script to export some tables from the PostgreSQL database to S3 as CSV files.
#!/bin/bash
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=...
PG_HOST=...
PG_USER=...
PG_PASS='...'
PG_DB=...