Skip to content

Instantly share code, notes, and snippets.

*/5 * * * * wget -O /dev/null -o /dev/null http://www.example.com/cron
@krishjun
krishjun / gist:b235b3077f8c078ebb7e
Created July 25, 2015 06:57
Git delete already deleted files
git ls-files --deleted -z | xargs -0 git rm
@krishjun
krishjun / gist:1f7735cad050568d03f4
Created August 31, 2015 15:19
Mysql Datetime php format
define('MYSQL_DATETIME_FORMAT', 'Y-m-d H:i:s');
define('APP_DATE_FORMAT', 'd-m-Y');
du -hsx * | sort -rh | head -10
--ignore-platform-reqs
@krishjun
krishjun / reverseMe
Last active September 26, 2018 13:45
function reverseMe($input) {
$len = strlen($input);
$output = '';
sudo curl -s https://getcomposer.org/installer | php