cat > /etc/yum.repos.d/pcextreme.repo << EOL
[pcextreme-main]
name=PCextreme Software Repository for CentOS 6 - \$basearch
baseurl=http://packages.pcextreme.nl/centos/6/main/\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://www.pcextreme.nl/pcextreme_signing.key
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pcextreme
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net" | |
| "regexp" | |
| "runtime" | |
| "strconv" | |
| "strings" |
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 [[ -e /home/core/volumes/consul/raft/peers.json ]] && [[ $(cat /home/core/volumes/consul/raft/peers.json | jq '. | length') -ge 3 ]]; then | |
| echo "CONSUL_BOOTSTRAP=\"\"" > /tmp/consul-env | |
| exit | |
| fi | |
| if [[ MACHINES=$(etcdctl ls /consul.io/machines | grep -v ${HOSTNAME}) ]] && [[ ${#MACHINES[@]} -ge 1 ]]; then | |
| for MACHINE in "$MACHINES"; do |
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
| ; Start a new pool named 'www'. | |
| ; the variable $pool can we used in any directive and will be replaced by the | |
| ; pool name ('www' here) | |
| [www] | |
| ; Per pool prefix | |
| ; It only applies on the following directives: | |
| ; - 'slowlog' | |
| ; - 'listen' (unixsocket) | |
| ; - 'chroot' |
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
| # top-most EditorConfig file | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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
| package main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "os" | |
| "strings" |
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: Power monitoring HomeWizard Energy Socket | |
| description: >- | |
| Monitort of een slimme stekker van HomeWizard actief is (aan of schakelslot) | |
| én of er stroomverbruik gedetecteerd wordt. Stuurt een kritieke notificatie | |
| en een persistente dashboardmelding als er iets mis is. | |
| domain: automation | |
| input: | |
| stekker_naam: | |
| name: Naam van de stekker |
OlderNewer