Skip to content

Instantly share code, notes, and snippets.

@ahmetozer
Created August 8, 2020 21:54
Show Gist options
  • Save ahmetozer/4085f8069c1d442d8943e54f20d55143 to your computer and use it in GitHub Desktop.
Save ahmetozer/4085f8069c1d442d8943e54f20d55143 to your computer and use it in GitHub Desktop.
Update Linux Date Time with curl and Cloudflare
#!/bin/bash
date
date -s"@$(curl ahmetozer.org/cdn-cgi/tracert -s | grep ts= | cut -d"=" -f2 | cut -d"." -f1)"
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment