Skip to content

Instantly share code, notes, and snippets.

@mrgfisher
mrgfisher / plex_copy_theme
Last active October 2, 2022 14:39
Plex movie theme copy script in python - copy movie theme mp3s from a reference directory into the Plex movie folder
# Lets say that you have a folder full of theme.mp3 files, organised as {movie name}/theme.mp3
# and you want to copy this a Plex movies folder matching on the movie name and a semi-inteligent
# match on similar name. The similar name may differ in odd characters - extra ' ', '!', '\'','-' etc
# This simple and thrown together script does this simple-ish job.
# This is known to 'just work' on a DSM7.1 Synology when run via ssh
# Note - use is 100% at your risk. It shouldn't overwrite existing files and shouldn't corrupt anything, but
# please review the code, have a laugh at this simplicity and lack of anything good (comments, error handling, logging)
# and use if you find it helpful. If you want a source of lots of movie theme music, have a search of that
@mrgfisher
mrgfisher / Python Webcam Dance Game
Created November 6, 2019 19:17 — forked from michvaldes001/Python Webcam Dance Game
This is a game I wrote in Python. It uses Pygame and OpenCV libraries for video capture and rendering. The objective of the game is to dance in front of the camera and fill the dance meter on the left. You must also stop the "lameness" meter on the right from accumulating. A final score is calculated according to how well you perform. See game i…
#!/usr/bin/env python
#Example of program in action can be found here http://www.youtube.com/watch?v=burYkYiI8vg
import sys, pygame, random, pygame.mixer, cv2
from PIL import Image
import PIL.ImageOps
#Setup
import time,imutils
import cv2
from PIL import Image
import numpy as np
from twilio.rest import Client
import tkinter
from threading import Thread
cap = cv2.VideoCapture(0)
cap.set(3,640) # set Width