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
<?xml version="1.0" encoding="UTF-8"?> | |
<thing:thing-descriptions bindingId="zwave" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0" | |
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 | |
https://openhab.org/schemas/thing-description/v1.0.0"> | |
<thing-type id="aeotec_zwa018_00_000" listed="false"> | |
<label>ZWA018 Aeotec Water Sensor 7 Basic</label> | |
<description> |
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
# Enable Touch ID for use with sudo on macOS. | |
PAM_CONFIG_FILE="/etc/pam.d/sudo" | |
TOUCH_ID_MODULE="pam_tid.so" | |
if ! grep -q ${TOUCH_ID_MODULE} ${PAM_CONFIG_FILE}; then | |
echo "Touch ID module for sudo (${TOUCH_ID_MODULE}) not found in PAM configuration file (${PAM_CONFIG_FILE})" | |
echo "Enter password to enable Touch ID for sudo" | |
NOW=`date +%FT%T%z` | |
BACKUP_EXTENSION=".enable_touch_id_backup_${NOW}" |
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
# Get output from 'docker images', skip the header line, print '{image_name}:{image_tag}' and feed each image as an argument to 'docker pull' | |
docker images | tail -n +2 | awk '{ print $1":"$2 }' | xargs -L 1 docker pull |
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
DIGESTS=`docker images | awk '$2 == "<none>" { print $3 }'` | |
if [ -n "${DIGESTS}" ]; then | |
docker rmi --force $DIGESTS | |
fi |