Skip to content

Instantly share code, notes, and snippets.

View RundesBalli's full-sized avatar
🎱
:-)

RundesBalli RundesBalli

🎱
:-)
View GitHub Profile
@RundesBalli
RundesBalli / ReadMe.md
Last active December 30, 2023 17:27
pr0gramm-fliesentischPixel

Preparation

Create template.png. The rest is documented in the code.

Dependencies:

php-cli php-mysql php-gd php-mbstring php-curl
@RundesBalli
RundesBalli / 01-README.md
Last active November 6, 2024 11:44
Server online-status check with reporting to telegram

Server online-status check with reporting to telegram

This simple script uses netcat to check if - for instance - a webserver is running on a server. If the service is not running, it utilizes the telegram bot API for sending a message to inform the operator of the server.

How to

1. Register the bot

Go to the BotFather bot-account and create a bot by writing /newbot. Then, copy the token.

2. Find your chat-id

Send a message to you newly created bot (you can find the link to your bot in the success message sent by BotFather).