Coder Social home page Coder Social logo

vsnthdev / samaya Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 49 KB

( समय​ ) - A time synchronization program that uses HTTP protocol.

License: GNU General Public License v2.0

Go 75.14% Makefile 19.34% Shell 5.52%
go golang cli ntp ntp-protocol https http-client time timesync synchronization

samaya's Introduction

samaya

( समय​ ) - A time synchronization program that uses HTTP protocol.


samaya is a command line program for synchronizes your system clock using the HTTPS protocol from World Time API. samaya is very helpful in situations where NTP (Network Time Protocol) packets are blocked or inaccessible.

🚀 Usage

samaya
A time synchronization program that uses HTTP protocol.

Usage:
  samaya [flags]

Flags:
  -D, --delay int           Delay the number of seconds before requesting the time
  -d, --dry                 Fetch the time, but don't update it
  -h, --help                help for samaya
  -t, --timezone string     Set time of that timezone (default "auto")
  -v, --verbose             Show extended output
  -V, --version             Print the version number and exit
  -w, --wait for internet   Wait until an active internet connection is established

🛠 Building

Dependencies:

Package Recommended Version
Go v1.12.8
Make v4.2.1
Git v2.23.0

Build Procedure:

# Create the namespace
mkdir -p "$(go env GOPATH)/src/vasanthdeveloper.com"

# Clone the project
git clone --single-branch --branch mainline https://github.com/vasanthdeveloper/samaya.git "$(go env GOPATH)/src/vasanthdeveloper.com/samaya"

# Enter the freshly cloned project
cd "$(go env GOPATH)/src/vasanthdeveloper.com/samaya"

# Start the compilation
make

# Install the compiled binaries
sudo make install

# Make samaya sync time, every time we boot the computer
sudo systemctl enable --now samaya

📰 License

The samaya project is released under the MIT license.
Developed & maintained By Vasanth Srivatsa. Copyright 2021 © Vasanth Developer.


vsnth.dev  ·  YouTube @vasanthdeveloper  ·  Twitter @vsnthdev  ·  Discord Vasanth Developer

samaya's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.