So you need to convert a bonch of FLAC files to mp3 and your best search engine only recommands you online file converters that nobody trusts ore require a paid subscription to work.
Don’t worry, there’s always a way, and even better, a true hacker style way to achieve this!
This procedure works for MacOS through Brew, but you should be able to make it work on any Debian, Ubuntu or Linux system as well.
Using your favourite MacOS packet manager Brew, install the Lame and FLAC libraries.
brew install lame flac
Then, to convert a bunch of FLAC files in a directory, simply use the following loop.
for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
Here’s a small script to get the IP address of the host server directly from the SQL*plus command line. DECLARE v_host_name v$instance.host_name%type; v_ip_address varchar2(50); BEGIN SELECT host_name INTO v_host_name FROM v$instance; dbms_output.put_line('the database server name is ' || v_host_name); SELECT UTL_INADDR.GET_HOST_ADDRESS(v_host... Read more
20 Nov 2014 - less than 1 minute readHere’s a small script to open a JavaScript interface to interact with an IoT device. This interface can then be easily incorporated in a larger Blockchain project with real tangible everyday life objects. I’ll cover the Blockchain aspect of this project in another article, focusing on Hyperledger. The IoT device I’ll be using for this project i... Read more
20 Aug 2017 - 2 minute readHere’s a small script to compress JPEG images in a folder. Useful to save a few kilobytes of bandwith when serving images from your website. I might improve this script in the future to include more compression tools and/or file extensions. #!/bin/bash for f in *.jpg *.JPG *.jpeg *.JPEG do echo -en "Converting ${f} ... " kb_orig=`du -... Read more
20 Jul 2017 - less than 1 minute read