$ 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
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
"""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:]]) ]] |
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
# Create the file repository configuration: | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
# Import the repository signing key: | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
# Update the package lists: | |
sudo apt-get update | |
# Install the latest version of PostgreSQL. |
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
2021-03-12,2021-05-17,2021-05-18,2021-05-19,2021-12-27,2022-01-01,2021-02-12,2021-03-11,2021-03-14,2021-04-02,2021-05-01,2021-05-13,2021-05-13,,2021-05-14,2021-05-26,2021-06-01,2021-07-20,,2021-08-10,2021-08-17,2021-10-19,2021-12-25,2021-05-12,2021-12-24 |