Skip to content

Instantly share code, notes, and snippets.

@luuuis
luuuis / Lovelace card to show troubles if present
Last active Jul 13, 2021
ParadoxAlarmInterface troubles sensors
View Lovelace card to show troubles if present
type: entity-filter
show_empty: false
entities:
- binary_sensor.paradox_trouble
- binary_sensor.paradox_ac_failure_trouble
- binary_sensor.paradox_low_battery_trouble
- binary_sensor.paradox_module_supervision_trouble
- binary_sensor.paradox_module_tamper_trouble
- binary_sensor.paradox_power_trouble
- binary_sensor.paradox_rf_interference_trouble
View 0001-test-master-log-all-SAML-payloads-for-manual-compari.patch
From f1488a370a1de1df79a45c3c07b6bb5af5bd88fc Mon Sep 17 00:00:00 2001
From: Luis Miranda <161006+luuuis@users.noreply.github.com>
Date: Fri, 11 Sep 2020 14:44:48 +0100
Subject: [PATCH] test(master): log all SAML payloads for manual comparison
---
package.json | 4 ++-
test/saml11.tests.js | 74 ++++++++++++++++++++++++++++++++++++++++++++++------
test/saml20.tests.js | 72 +++++++++++++++++++++++++++++++++++++++++---------
3 files changed, 128 insertions(+), 22 deletions(-)
@luuuis
luuuis / pre-commit.sh
Last active Sep 19, 2021 — forked from dahjelle/pre-commit.sh
Pre-commit hook for eslint, linting *only* staged changes.
View pre-commit.sh
#!/usr/bin/env bash
set -uo pipefail
IFS=$'\n\t'
#
# Improvements from dahjelle/pre-commit.sh:
# - does not lint deleted files,
# - lints all staged files before exiting with an error code,
# - handles spaces and other unusual chars in file names.
#