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
blueprint: | |
name: Low Battery Notifications & Actions | |
description: > | |
# 🪫 Low Battery Notifications & Actions | |
**Version: 2.1** | |
🚀 Stay Charged, Stay Smart! Let's automate and take charge of your battery maintenance!🔋⚡ | |
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
blueprint: | |
name: Renew Let's Encrypt Certificate | |
description: Renew Certificate when due date is below given value | |
domain: automation | |
input: | |
cert_expiry_sensor: | |
name: Certificate Expiry Sensor | |
description: Sensor from the Certificate Expiry Integration (https://www.home-assistant.io/integrations/cert_expiry) | |
selector: | |
entity: |
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\Subscriber; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpKernel\Event\RequestEvent; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Event\ResponseEvent; | |
use Symfony\Component\HttpKernel\KernelEvents; |
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
git log --author="<AUTHORNAME>" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' |
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
AuthName "Protected Area" | |
AuthType Basic | |
AuthUserFile /path/to/your/.htpasswd | |
AuthGroupFile /dev/null | |
SetEnvIf Request_URI .* noauth | |
SetEnvIf Request_URI the_uri_you_want_to_protect !noauth | |
SetEnvIf Request_URI /another/uri/ !noauth | |
SetEnvIf Request_URI add_as_many_as_you_want !noauth |
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 | |
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['extensionkey']['UrlReplacements'] = [ | |
'newsroom/presse/details/tx_news/' => 'newsroom/presse/', | |
'newsroom/aktuelles/details/tx_news/' => 'newsroom/aktuelles/', | |
'newsroom/veranstaltungskalender/details/tx_news/' => 'newsroom/veranstaltungskalender/' | |
]; |
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
/** | |
* This function will remove all suspicious characters from a $_GET parameter | |
* | |
* @param $url | |
* @return array|string|string[]|null | |
*/ | |
protected function filterUrl($url) | |
{ | |
if (is_array($url)) | |
{ |
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 | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Database\Query\QueryBuilder; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper; | |
/** | |
* The repository for ExampleRepository | |
*/ |
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
TYPO3 won't use translation files they look like: | |
<trans-unit id="example"> | |
<source>Beispiel</source> | |
<seg-source> | |
<mrk mtype="seg" mid="108">Beispiel</mrk> | |
</seg-source> | |
<target state="final"> | |
<mrk mtype="seg" mid="108">Example</mrk> | |
</target> | |
</trans-unit> |
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
1. Feststellen des korrekten Namens der Box: vagrant status | |
2. Entfernen der VirtualBox-VM: vagrant destroy | |
3. Entfernen der Vagrant-Box: vagrant box remove <Box-Name aus Schritt 1> |
NewerOlder