svn st | grep -e '^M' | awk '{print $2}' | xargs svn revert
About Magento, Linux, Jquery, PHP ... and other!
svn st | grep -e '^M' | awk '{print $2}' | xargs svn revert
find / -name "test_*" -type d -print
ln -s /etc/apache2/sites-available/phpmyadmin.domain.net /etc/apache2/sites-enabled/phpmyadmin.domain.net
public function _getDiffInHours( $date ){
$usDate = str_replace ( "/" , "-" ,$date);
$now = strtotime("now");
$nextDate = strtotime ( $usDate );
if(! is_numeric( $nextDate ) || ! is_numeric( $now ) || $nextDate < $now ){
return 0;
}
return floor( ($nextDate-$now) / (60*60));
}
public function _log($msg){
$nameFile = 'other-file-'.date ( "Y-m-d-H" ).'.log';
Mage::log($msg, null, $nameFile );
}
public function normaliza ($string){
$a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ';
$b = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr';
$string = utf8_decode($string);
$string = strtr($string, utf8_decode($a), $b);
$string = strtolower($string);
return utf8_encode($string) ;
}