Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
blueprint: | |
name: Set thermostat temperature at specific time | |
description: Sets a climate entities to a specifc temperature at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode. | |
domain: automation | |
source_url: https://gist.github.com/bbbenji/059c16e9aa4bcec21f77d52f0dbac320 | |
input: | |
persons: | |
name: Persons | |
description: Select the persons to be home. | |
default: {entity_id: []} |
Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
#!/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 |