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
#!/bin/env python | |
import os | |
base_url = 'http://mydomain.com/mp3s' | |
root_dir = '/home/username/mp3s' | |
m3u_name = '000_all_songs.m3u' | |
audio_exts = ['.mp3', '.ogg', '.m4a'] | |
def handle_dir(base_dir, root_dir): | |
files = [] | |
for path in os.listdir(root_dir): | |
full_path = os.path.join(root_dir, path) |
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
" my vimrc with some chunks borrowed from | |
" https://gist.github.com/benfrain/f09dd39e66fe2da9cf0a | |
set nocompatible | |
filetype off | |
" install Vundle | |
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
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
#!/usr/bin/env python | |
"""hover.py: Provides dynamic DNS functionality for Hover.com using their unofficial API. | |
This script is based off one by Dan Krause: https://gist.github.com/dankrause/5585907""" | |
__author__ = "Andrew Barilla" | |
__credits__ = ["Andrew Barilla", "Dan Krause"] | |
__license__ = "GPL" | |
__version__ = "1.0" | |
__maintainer__ = "Andrew Barilla" |