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 to file: /etc/fail2ban/jail.local | |
[nginx-badbots] | |
enabled = true | |
port = http,https | |
filter = nginx-badbots | |
logpath = %(nginx_access_log)s | |
maxretry = 1 | |
findtime = 604800 | |
bantime = 604800 |
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
#!/usr/bin/env bash | |
################################################################ | |
# Auto-Copy Script for unRAID Unassigned Devices Plugin | |
# Original script: https://gitlab.com/snippets/1737763 | |
################################################################ | |
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin | |
# Available 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
# IMPORTANT: Enable the package in `configuration.yaml` | |
# @see https://www.home-assistant.io/docs/configuration/packages/ | |
# Option 1: Include all files inside `config/packages` as package files: | |
homeassistant: | |
packages: !include_dir_named packages | |
# Option 2: Use `packages/jetpack_8800l.yaml` file directly from `config/packages` folder: | |
homeassistant: | |
packages: |
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
# Webhook URL: https://[your-hass-domain]/api/webhook/2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
- id: webhook_debugger | |
alias: "Webhook Debugger" | |
trigger: | |
- platform: webhook | |
webhook_id: 2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
action: | |
- service: persistent_notification.create | |
data_template: |
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
customElements.whenDefined("ha-quick-bar").then(() => { | |
const fireEvent = (node, type, detail, options) => { | |
options = options || {}; | |
detail = detail === null || detail === undefined ? {} : detail; | |
const event = new Event(type, { | |
bubbles: options.bubbles === undefined ? true : options.bubbles, | |
cancelable: Boolean(options.cancelable), | |
composed: options.composed === undefined ? true : options.composed, | |
}); | |
event.detail = detail; |
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 | |
# | |
# Perform local backups of Gitter.im chat rooms. | |
GITTER_ARCHIVE_URL="https://gitter.im/%s/archives/%s" | |
usage() { | |
echo "usage: $(basename $0) -f -r <chat-room> [-o <output-dir>] [-s <YYYY/MM/DD>] [-e <YYYY/MM/DD>]" 1>&2 | |
exit 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
# It should be possible to add these CSS variables to your | |
# frontend theme instead of in the card configuration. | |
- type: glance | |
title: Network Devices | |
columns: 4 | |
show_icon: true | |
show_name: true | |
show_state: false | |
style: |
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
################################################################ | |
# Automations / Restart Time | |
# Publish timestamps to MQTT broker on start and shutdown. | |
################################################################ | |
- id: restart_time_start | |
alias: Publish Start Time | |
description: Publish current timestamp to MQTT broker on startup. | |
mode: single | |
trigger: |
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
remote_user=pi | |
remote_host=192.168.1.100 | |
remote_path=/home/pi | |
remote_port=22 |
NewerOlder