Skip to content

Instantly share code, notes, and snippets.

@arionl
arionl / disney_rename.py
Created Apr 19, 2020
Rename Disney Shorts
View disney_rename.py
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"
View keybase.md

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:

View rpi-hdmi
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in