A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.

uptime

A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments:

-interval=60
-urls='https://ma.rkus.io, https://www.uberswe.com'

You can run this by typing go run cmd/uptime/main.go -interval=5 -urls='https://ma.rkus.io, https://www.uberswe.com' in a terminal.

Logs will look like this:

2021/04/22 00:26:45  https://ma.rkus.io - 200
2021/04/22 00:26:45  https://www.uberswe.com - 200
2021/04/22 00:26:49  https://www.uberswe.com - 200
2021/04/22 00:26:49  https://ma.rkus.io - 200
2021/04/22 00:26:54  https://www.uberswe.com - 200
2021/04/22 00:26:54  https://ma.rkus.io - 200
2021/04/22 00:26:59  https://www.uberswe.com - 200
2021/04/22 00:26:59  https://ma.rkus.io - 200
Owner
Markus Tenghamn
Mainly a backend developer. I do a bit of everything but mostly PHP and Go.
Markus Tenghamn
Similar Resources

Go pkg and cli tool to sign Google Maps API URLs

gmapsign gmapsign is a Go pkg and cli tool to sign Google Maps API request URLs. This is required when using: A client ID with the web service APIs, M

Jul 4, 2022

πŸš€ goprobe is a promising command line tool for inspecting URLs with modern and user-friendly way.

goprobe Build go build -o ./bin/goprobe Example goprobe https://github.com/gaitr/goprobe cat links.txt | goprobe echo "https://github.com/gaitr/

Oct 24, 2021

(en|de)code urls from the CLI

hakurlencode (en|de)code urls from the CLI Installation go get github.com/hakluke/hakurlencode Usage Pipe into the tool with no options to encode, fo

Jun 9, 2022

A prediction program which analyzes given numbers and calculates new values

Guess-It-2 About This is a prediction program which analyzes given numbers and calculates new values. Usage To test the program, download this zip fil

Nov 30, 2021

being a gh extension that runs animated terminal "screensavers"

gh-screensaver being a gh extension that runs animated terminal "screensavers" usage gh screensaver run a random screensaver gh screensaver -s pipes r

Nov 29, 2022

ntest is a cross-platform cli app that runs multiple tests against any address.

ntest is a cross-platform cli app that runs multiple tests against any address.

ntest ntest is a cross-platform cli app that runs multiple tests against any address. About ntest Having the ability to run common tests against any d

Jan 3, 2022

Jsos - A operating system that runs system-level javascript, based on the Linux kernel

JsOS πŸš€ An linux-based operating system that runs Javascript code at the system-

Jan 6, 2023

Program to convert plain text to CSV file which can imported into Anki.

Program to convert plain text to CSV file which can imported into Anki. The motivation of this program is to save time by automatically coverting Question and Answer into CSV file which can be imported directly into Anki.

May 22, 2022

Architecture checks for Go projects

Arch-Go Architecture checks for Go projects Supported rules Dependencies Checks Supports defining import rules Allowed dependencies Not allowed depend

Dec 20, 2022
Comments
  • :rocket: Dockerized this app

    :rocket: Dockerized this app

    Run application using docker.

    1. Build application by running : docker build -t uptime .
    2. Run container by running : docker run --name uptime -e URLS="https://zerka.dev" -e INTERVAL=60 uptime We can run it in detach mod using -d

    Note: This containers hasn't publish in github docker registry, we can do it

Related tags
cTRL is a server for remote execution of pending tasks and commands in real time, supporting a queue with continuous thread limiting and throttling.

ДокумСнтация Π½Π° русском: https://github.com/eltaline/ctrl/blob/master/README-RUS.md cTRL is a server written in Go language that uses a modified versi

Mar 3, 2022
cTRL: a server for remote execution of pending tasks and commands in real time

ДокумСнтация Π½Π° русском: https://github.com/eltaline/ctrl/blob/master/README-RUS.md cTRL is a server written in Go language that uses a modified versi

Mar 3, 2022
Gracefully quit when you press ctrl-c.

Go - Ctrlc Gracefully quit when you press ctrl-c. Install go get -u github.com/danielgatis/go-ctrlc And then import the package in your code: import "

Apr 23, 2022
Clirunner - Package clirunner runs a legacy shell-style CLI as if a human were running it.

clirunner Package clirunner runs a legacy shell-style command-line interpreter (CLI) as if a human were running it. A shell-style CLI offers a prompt

Jan 4, 2022
Mimic - a eBPF virtual machine and emulator which runs in userspace

Mimic is a eBPF virtual machine and emulator which runs in userspace. Mimic attempts to 'mimic' the eBPF machinery we find in the Linux kernel, as well as other possible implementation/environments.

Dec 6, 2022
A tool to enumerate all the command-line arguments used to start a Linux process written in Go.
A tool to enumerate all the command-line arguments used to start a Linux process written in Go.

ranwith A tool to enumerate all the command-line arguments used to start a Linux process written in Go. ranwith uses the Linux /proc directory to obta

Jun 30, 2022
Package osargs provides functions to parse command line arguments

osargs About Package osargs provides functions to parse command line arguments. It is published on https://github.com/vbsw/osargs and https://gitlab.c

May 8, 2022
Go cmd utility that prints its command line arguments using strings.Join

Results This is an exercise of the book The Go Programming Language, by Alan A. A. Donovan and Brian Kernighan. Comparison between different versions

Dec 18, 2021
Option: a busy optional parameter for golang

Option option is a busy optional parameter init opt := option.New() set opt.Set("parameter name", 3.141592) apply a := 0.0 opt.Apply("parameter name",

Dec 28, 2021
K-Mesh is an experimental Knative distribution which provides a fresh, CLI-focused, holistic user experience of running and managing Knative.

K-Mesh is an experimental Knative distribution which provides a fresh, CLI-focused, holistic user experience of running and managing Knative. N

Feb 14, 2022