This file contains hidden or 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
- id: notify_bad_login | |
alias: Send notification failed login attempt | |
initial_state: true | |
trigger: | |
- platform: state | |
entity_id: persistent_notification.http_login | |
condition: | |
- condition: template | |
value_template: '{{ trigger.to_state.state != ''None'' }}' |
This file contains hidden or 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
Port 57749 | |
PubkeyAuthentication yes | |
PasswordAuthentication no | |
PermitEmptyPasswords no | |
PermitRootLogin no | |
MaxAuthTries 5 | |
ClientAliveInterval 900 | |
ClientAliveCountMax 3 |
This file contains hidden or 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
# Hassio nginx file location /usr/share/hassio/share/nginx_proxy/whitelist.conf:/share/nginx_proxy/whitelist.conf | |
# Nginx addon config | |
# customize: | |
# active: true | |
# default: nginx_proxy_default*.conf | |
# servers: nginx_proxy/*.conf | |
# Allow google assistant IPs | |
allow 66.249.0.0/16; |
This file contains hidden or 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 | |
IFS=$'\n' clusters=($(kubectl config get-contexts --no-headers | awk '{print $2}')) | |
active_cluster=$(kubectl config current-context) | |
for i in ${!clusters[@]}; | |
do | |
: | |
if [ "${clusters[$i]}" == $active_cluster ]; then | |
echo -e "\033[31m[*] \033[36m"${clusters[$i]} |
This file contains hidden or 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
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
OlderNewer