Skip to content

Instantly share code, notes, and snippets.

@rkok
rkok / m3u2audpl.sh
Last active July 6, 2023 10:10
Convert .m3u to .audpl (Audacious playlist file)
#!/bin/bash
############################################################################################
# m3u2audpl.sh
#
# Creates an Audacious playlist,
# pre-indexed faster than Audacious does it over network mounts
# Supported formats: basic m3u, extended m3u.
#
# Usage:
# 1. Create an empty playlist in Audacious
@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 .