Skip to content

Instantly share code, notes, and snippets.

View dmarcelino's full-sized avatar

Dário dmarcelino

  • AppsCot
  • Lisbon, Portugal
View GitHub Profile
@dmarcelino
dmarcelino / .bashrc
Last active September 30, 2020 07:37 — forked from marioBonales/.bashrc
Custom .bashrc for ubuntu with git and kubernetes support
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@dmarcelino
dmarcelino / flatten_folders.sh
Last active November 1, 2020 14:34
Reduce the number of folders taken by a music collection to please some car head units
#!/usr/bin/env bash
#
# Some car head units have restrictions on the number of folders they can access,
# this scripts aims to reduce the number of folders taken by a music collection.
# Assumes the music collection is set up as Artist / Album
# This also ensures the folders and files don't exceed the maximum file size.
# My own head unit restrictions: 255 folders, folder/filename size: 63 chars
export MAX_FILE_SIZE=63
export APPLY_CHANGES=false