Skip to content

Instantly share code, notes, and snippets.

@arionl
arionl / disney_rename.py
Created April 19, 2020 01:16
Rename Disney Shorts
import tvdbsimple as tvdb
import os
from os import listdir
from os.path import isfile, join
from difflib import SequenceMatcher
def similar(a, b):
return SequenceMatcher(None, a, b).ratio()
mypath = "Disney Animated Shorts"

Keybase proof

I hereby claim:

  • I am arionl on github.
  • I am arion (https://keybase.io/arion) on keybase.
  • I have a public key ASC0Pt4AuHz5EIKj7b88-wwsWgHBzKMUeV9WvSO_bR1GOQo

To claim this, I am signing this object:

@arionl
arionl / rpi-hdmi
Created March 30, 2014 19:01 — forked from AGWA/rpi-hdmi.sh
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in