Skip to content

Instantly share code, notes, and snippets.

Andy Barilla andybarilla

Block or report user

Report or block andybarilla

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View m3u_generate.py
#!/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)
View .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 May 23, 2019
DDNS Script for Hover (using their unofficial API)
View hover.py
#!/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"
You can’t perform that action at this time.