$ apk add --no-cache curl
$ echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
$ cat > /etc/cgconfig.conf <<EOF
mount {
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
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
http: | |
enabled: true | |
address: 0.0.0.0:1023 | |
root_path: /benthos | |
debug_endpoints: false | |
cert_file: "" | |
key_file: "" | |
cors: | |
enabled: false | |
allowed_origins: [] |
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
version: '3' | |
volumes: | |
mysql_data: | |
driver: local | |
services: | |
mysql: | |
image: mysql:5.7 | |
volumes: |
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
version: '3.4' | |
services: | |
mytrendz: | |
restart: always | |
image: "thingsboard/trendz:latest" | |
container_name: mytrendz | |
ports: | |
- "8888:8888" | |
environment: | |
TB_API_URL: http://182.23.67.112:8080 |
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
curl -L0 https://github.com/moby/moby/blob/master/contrib/check-config.sh > check-config.sh | |
chmod +x check-config.sh | |
./check-config.sh |
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
Instalasi | |
------------------------ | |
sudo mkdir docker-mosquitto | |
cd docker-mosquitto | |
sudo mkdir mosquitto | |
sudo mkdir mosquitto/config/ | |
sudo mkdir mosquitto/data/ | |
sudo mkdir mosquitto/log/ | |
sudo touch mosquitto/config/mosquitto.conf |
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
"""Constants for the Xiaomi Miio component.""" | |
DOMAIN = "xiaomi_miio" | |
CONF_FLOW_TYPE = "config_flow_device" | |
CONF_GATEWAY = "gateway" | |
CONF_DEVICE = "device" | |
CONF_MODEL = "model" | |
CONF_MAC = "mac" | |
KEY_COORDINATOR = "coordinator" |
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
# Taken from https://github.com/microsoft/WSL/issues/5126#issuecomment-653715201 | |
sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig | |
sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target | |
exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME | |
snap version |
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
#!/usr/bin/env bash | |
# Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4 | |
# but improved to use the `go` command so it never goes out of date. | |
type setopt >/dev/null 2>&1 | |
contains() { | |
# Source: https://stackoverflow.com/a/8063398/7361270 | |
[[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]] |