View ffmpeg.sh
# change metadata of audio file | |
ffmpeg -i input.mp3 -acodec copy -vn -metadata artist=Ali output.mp3 |
View setlocale.php
<?php | |
setlocale(LC_CTYPE, "en_US.UTF-8"); |
View ArrayHelper.php
<?php | |
/** | |
* ArrayHelper | |
* | |
* @author Ali Irani <ali@irani.im> | |
*/ | |
class ArrayHelper | |
{ | |
/** | |
* Move an array item from an index to another index position |