This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Base Options | |
set nocompatible " Get rid of Vi compatibility mode. SET FIRST! | |
set isk+=_,$,@,%,#,- " Make these characters count as part of a word. | |
set viminfo+=! " Make sure we can save viminfo. | |
set ignorecase " Ignore case in searches | |
filetype on | |
filetype off | |
" Start Pathogen | |
call pathogen#infect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Probably not useful to most people, but an easy way to get rid of 1-star rated songs from Kodi and disk. | |
# This works on my setup, where both Kodi and the computer the script is running on have the same share mounted. | |
# Use line 24 to correct the paths relative to the two boxes. | |
import os | |
import sqlite3 | |
import sys | |
# Get database via SCP: | |
# scp "<user>@<kodi-host>:/path/to/.kodi/userdata/Database/MyMusic60.db" . |