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 / LICENSE
Last active September 16, 2023 09:14
formatTime function format a given time in seconds to a readable time
MIT License
Copyright (c) 2023 RundesBalli
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@RundesBalli
RundesBalli / clickableLinks.php
Last active April 12, 2022 19:23
clickableLinks
@RundesBalli
RundesBalli / 01-README.md
Last active January 19, 2024 12:29
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).

@RundesBalli
RundesBalli / 01-README.md
Last active April 2, 2021 14:08
hex2rgb php-function for calculating the RGB values of a hex string.

hex2rgb

hex2rgb is a simple php function based on the hexdec function and RegEx.

I have been inspired by the two following comments:

Thanks to the authors.

@RundesBalli
RundesBalli / README.md
Last active January 17, 2024 21:25
PHP-Snippet: Tidy HTML Output

Small snippet for the PHP-Tidy function

Dependencies:

sudo apt install php-tidy

Example

turns this:

@RundesBalli
RundesBalli / 01-ReadMe.md
Last active May 24, 2020 17:30
Fractionizer

Fractionizer

Fractionizer is a simple number format function with quarter, half and three quarter fraction output.
See examples.md for examples.
By default the decimal and thousand separator are formatted in the european version: dot for thousands, comma as decimal point.