Skip to content

Instantly share code, notes, and snippets.

@rkok
rkok / mkm3u.sh
Created July 19, 2019 07:35
Bare-bones m3u generator
#!/bin/bash
#################################################################
# mkm3u.sh - Bare-bones m3u generator
# Usage:
# ./mkm3u.sh
# Setup:
# 1. Supply INPATHS. Paths which are relative
# to this script will result in relative paths in the m3u
# 2. (Optional) Edit file extensions "mp3|flac|xm|s3m|mod|it"
#################################################################
@rkok
rkok / resurrect-submodules.sh
Last active November 21, 2018 15:40
Retrieve git submodules without a .git directory
###############################################################
# This comes in handy when you have a copy of a git repository
# without the .git metadata directory included,
# for instance a .zip export from Bitbucket.
# For use in a shell script.
###############################################################
if [ ! -d '.git' ]; then
git init .