Skip to content

Instantly share code, notes, and snippets.

@luuuis
luuuis / pre-commit.sh
Last active September 19, 2021 16:18 — forked from dahjelle/pre-commit.sh
Pre-commit hook for eslint, linting *only* staged changes.
#!/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.
#
@luuuis
luuuis / 0001-test-master-log-all-SAML-payloads-for-manual-compari.patch
Last active September 14, 2020 10:04
Patches for logging SAML assertions
From f1488a370a1de1df79a45c3c07b6bb5af5bd88fc Mon Sep 17 00:00:00 2001
From: Luis Miranda <[email protected]>
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 / Lovelace card to show troubles if present
Last active July 13, 2021 21:14
ParadoxAlarmInterface troubles sensors
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
@luuuis
luuuis / configuration.yml
Last active February 18, 2023 18:36
Preços do mercado diário e do mecanismo de ajuste MIBEL
homeassistant:
customize:
sensor.omie_daily_spot_pt:
device_class: monetary
state_class: measurement
sensor.omie_daily_ajuste_pt:
device_class: monetary
state_class: measurement
sensor: