Range input for selecting cardinal direction and outputting degrees from north using Bootstrap custom-range input and native JavaScript.
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
# GPIO0 | |
# GPIO1 | |
# GPIO2 | |
# GPIO3 Button middle | |
# GPIO4 Button left | |
# GPIO5 Button right | |
# GPIO12 Relay/LED red left | |
# GPIO13 LED green (all) | |
# GPIO14 Relay/LED red middle | |
# GPIO15 Relay/LED red Right |
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
import { LitElement, html } from 'https://unpkg.com/@polymer/[email protected]/lit-element.js?module'; | |
const styles = html` | |
<style> | |
:host { | |
display: flex; | |
flex: 1; | |
flex-direction: column; | |
} | |
ha-card { |
Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
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
# Airly | |
- platform: rest | |
scan_interval: 120 | |
name: Airly | |
resource: !secret airly_resource | |
value_template: "{{ value_json['current']['values'][1]['value'] }} {{ value_json['current']['values'][2]['value'] }} {{ value_json['current']['values'][3]['value'] }} {{ value_json['current']['values'][4]['value'] }} {{ value_json['current']['values'][5]['value'] }} {{ value_json['current']['indexes'][0]['level'] }}" | |
headers: | |
apikey: !secret airly_apikey | |
- platform: template |
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
#Custom configuration | |
SMTP_PORT == 25:587 | |
LOCAL_INTERFACES == <; 0.0.0.0.25 ; 0.0.0.0.587 ; 0.0.0.0.465 ; [::0]:25 ; [::0]:587 ; [::0]:465 | |
smtp_accept_max = 50 | |
spamd_address = 127.0.0.1 783 | |
ACL_SMTP_DATA == acl_custom_check_data | |
USE = "exiscan" | |
#Custom ACLs |
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
#!/bin/bash | |
SET_USERS="usernameone:password:/path/to/web/folder usernametwo:password:/path/to/second/folder" | |
IFS=' ' read -a USERS <<< "${SET_USERS}" | |
for SET_USER in ${USERS[@]}; do | |
IFS=':' read -a USER <<< "${SET_USER}" | |
NAME=${USER[0]}; | |
PASS=${USER[1]}; | |
DIR=${USER[2]}; | |
(echo $PASS; echo $PASS) | pure-pw useradd $NAME -u www-data -g www-data -d $DIR |
NewerOlder