Pages

Oct 6, 2011

Linux convert FLAC to MP3 under terminal

Using the terminal, navigate to your .flac folder.

Run the following command:

for file in *.flac; do flac -cd "$file" | lame -h - "${file%.flac}.mp3"; done

Note: You'll need both flac and lame installed (obviously).

If you need a more advanced script try this solution over linuxtutorialblog.com.

Oct 4, 2011

Allow symbolic links on Mac OS's native Apache

Edit:
/etc/apache2/users/<YOURUSER>.conf

Put:
<Directory "/Users/<YOURUSER>/Sites/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Terminal colors on Mac OS

edit:
~/.bash_profile
put:
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced