This file contains 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 | |
# INFO: First, make the shell script executable with: chmod u+x backup.sh | |
# START: [INIT SCRIPT VARIABLES] | |
backupMode=1 | |
verbose=0 | |
# END: [INIT SCRIPT VARIABLES] |
This file contains 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
<?php | |
/** | |
* Created by whydesign. | |
* Autor: Ludwig Jäschke | |
* Git: https://github.com/whydesign | |
* Date: 12.06.24 | |
* Time: 15:45 | |
*/ | |
declare(strict_types=1); |
This file contains 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
<?php | |
declare(strict_types=1); | |
namespace App\Bundle\Helper; | |
use Symfony\Component\Serializer\Encoder\XmlEncoder; | |
class XmlParser | |
{ | |
private $xmlString; |
This file contains 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
<?php | |
declare(strict_types=1); | |
use Imagine\Gd\Imagine; | |
use Imagine\Image\Box; | |
class ImageOptimizer | |
{ | |
private const MAX_SIZE = 700; | |
private $imagine; |
This file contains 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
<?php | |
///////////////////////////// | |
//* Your NTFY.sh Settings *// | |
///////////////////////////// | |
$ntfy_server = 'https://ntfy.sh/'; | |
$ntfy_topic = 'YourRpiLocator'; | |
$ntfy_priority = '3'; | |
$ntfy_emoji = 'white_check_mark'; | |
$ntfy_title = 'RPI Locator: Stock Alert!'; | |
////////////////////////////////////// |