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 level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
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
{ | |
"github-oauth": { | |
"github.com": "abc123def456ghi7890jkl987mno654pqr321stu" | |
} | |
} |
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
# add these functions in ~/.bashrc | |
# | |
# Easier port forwarding - usage: | |
# | |
# $ portforward 9204 stageX localhost 9200 | |
# | |
# where 'stageX' is an alias from ~/.ssh/config | |
# 9200 is the remote port on localhost | |
# 9204 is local port | |
# |
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
{ | |
"contact": "https://discord.gg/lturepublic", | |
"templates": [ | |
{ | |
"name": "Vytautas", | |
"sources": [ | |
"https://imgur.com/OrIub1b.png" | |
], | |
"x": 1359, |
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\Command; | |
use Monolog\Logger; | |
use Psr\Log\LoggerInterface; | |
use RuntimeException; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
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\Monolog; | |
use Throwable; | |
/** | |
* log stack trace instead of exception class |
OlderNewer