Skip to content

Instantly share code, notes, and snippets.

@JohnBrodie
JohnBrodie / .vimrc
Created January 30, 2012 21:02
Vim setup
" 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()
@JohnBrodie
JohnBrodie / kodi_delete_low_ratings.py
Created December 29, 2018 04:36
Delete low rated songs from Kodi
# 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" .