Skip to content

Instantly share code, notes, and snippets.

Avatar

Michał Moroz dragonee

View GitHub Profile
@dragonee
dragonee / .bashrc
Last active Mar 5, 2019
startenv for gnome-terminal
View .bashrc
#!/bin/bash
# stub implementation of https://github.com/dragonee/iterm2-startenv for gnome-terminal
# using bash and nodejs
# this code should be put at the end of your .bashrc
# usage:
# put https://github.com/dragonee/iterm2-startenv/blob/master/examples/fullexample.js
# as .startenv.js in your project root directory
# modify it to your needs
@dragonee
dragonee / .bashrc
Last active Aug 19, 2017
A command to convert album with separate FLAC files and import it to iTunes
View .bashrc
# adds three functions to your Bash terminal:
# flac2mp3 DIRECTORY - converts a directory with .flac files to .mp3 format
# itunesadd DIRECTORY - moves MP3 files to iTunes "Add Automatically" folder
# flac2itunes DIRECTORY - converts files to mp3 and adds them to iTunes in one step
#
# options can be modified below
# requires flac2mp3.pl from https://github.com/robinbowes/flac2mp3
export FLAC2MP3_APP="/Users/dragonee/Kod/flac2mp3/flac2mp3.pl"
export FLAC2MP3_OPTIONS="--processes=5 --preset=320"