Skip to content

Instantly share code, notes, and snippets.

#!/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)
@andybarilla
andybarilla / .vimrc
Last active September 18, 2015 02:59
.vimrc
" 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()
@andybarilla
andybarilla / hover.py
Last active August 5, 2023 06:21
DDNS Script for Hover (using their unofficial API)
#!/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"