Skip to content

Instantly share code, notes, and snippets.

@pbuckley4192
Created December 6, 2016 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbuckley4192/f691f00a055980ef1b2f116498cdd312 to your computer and use it in GitHub Desktop.
Save pbuckley4192/f691f00a055980ef1b2f116498cdd312 to your computer and use it in GitHub Desktop.
Set Server time when there is no NTP available
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment