Skip to content

Instantly share code, notes, and snippets.

View vixchauhan's full-sized avatar

Vikas Chauhan vixchauhan

View GitHub Profile
@vixchauhan
vixchauhan / gist:1d9623bddac700ac88cd62444a6fc506
Created January 6, 2020 03:28 — forked from jtdp/gist:5443297
See changes before pulling from remote git repository
# fetch the changes from the remote
git fetch origin
# show commit logs of changes
git log master..origin/master
# show diffs of changes
git diff master..origin/master
# apply the changes by merge..
@vixchauhan
vixchauhan / cron.php
Created July 16, 2019 12:06 — forked from lcherone/cron.php
CRON PHP Daemon
#!/usr/bin/php
<?php
/**
* Need to test code works on ©Win"virus"dow$
*
* Aim:
* To run code within a cron task at a settable frequency above 1 per minute,
* but not overrun the minute or run again if already running, tasks should
* also complete at there own pace within the minute.
*