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/sh | |
echo "External: " | |
dig +short myip.opendns.com @resolver1.opendns.com | |
echo "Internal: " | |
ifconfig |grep inet | awk '{print $2}' |grep -v '127.0.0.1\|::1\|fe80::' |
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
blueprint: | |
name: Logic Group Matrix ZDB5100 | |
description: Create automatisation for the ZDB5100 using zwavejs integration | |
domain: automation | |
input: | |
matrix_zdb5100: | |
name: Matrix ZDB5100 | |
description: The matrix to interact with | |
selector: | |
device: |
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 | |
set -e | |
if [[ -z "${BUILD_NUMBER}" ]]; then | |
echo "No build number set" | |
env | |
exit 0 | |
fi | |
BUILD_VERSION=`jq -r '.version' package.json | sed "s/0$/${BUILD_NUMBER}/"` |
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 -e | |
# Extract hostname and port from DATABASE_URL | |
DB_HOST=$(echo $DATABASE_URL | sed -n 's/^.*[^@]*@\([^:]*\):[0-9]*.*$/\1/p') | |
DB_PORT=$(echo $DATABASE_URL | sed -n 's/^.*[^@]*@[^\:]*:\([0-9]*\).*$/\1/p') | |
# Wait for the database to be ready before starting the application | |
until nc -z -v -w30 $DB_HOST $DB_PORT; do |
OlderNewer