Created
August 8, 2020 21:54
-
-
Save ahmetozer/4085f8069c1d442d8943e54f20d55143 to your computer and use it in GitHub Desktop.
Update Linux Date Time with curl and Cloudflare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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