Skip to content

Instantly share code, notes, and snippets.

View airani's full-sized avatar

Ali Irani airani

View GitHub Profile
@airani
airani / ArrayHelper.php
Last active December 9, 2016 09:49
Move an array item from an index to another index position
<?php
/**
* ArrayHelper
*
* @author Ali Irani <[email protected]>
*/
class ArrayHelper
{
/**
* Move an array item from an index to another index position
@airani
airani / setlocale.php
Last active February 6, 2017 21:51
Fixed some problems in php with encoding utf8
<?php
setlocale(LC_CTYPE, "en_US.UTF-8");
@airani
airani / ffmpeg.sh
Created February 6, 2017 23:02
ffmpeg command tips
# change metadata of audio file
ffmpeg -i input.mp3 -acodec copy -vn -metadata artist=Ali output.mp3