Skip to content

Instantly share code, notes, and snippets.

@antoniopresto
Created November 15, 2017 22:39
Show Gist options
  • Save antoniopresto/e97ce07e8e020a518351004821119f98 to your computer and use it in GitHub Desktop.
Save antoniopresto/e97ce07e8e020a518351004821119f98 to your computer and use it in GitHub Desktop.
# /bin/fixtime
/usr/sbin/ntpdate -u time.apple.com
#
chmod u+x /bin/fixtime
# cron
$ EDITOR=nano crontab -e
> 2 * * * * sudo -S fixtime >> ~/Desktop/cron.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment