sudo apt-get install python3-pip
sudo pip3 install virtualenv
| 1. Plug USB device | |
| root@proxmox01:~# lsusb | |
| [...] | |
| Bus 004 Device 005: ID 0658:0200 Sigma Designs, Inc. | |
| [...] | |
| 2. Take a look of device | |
| root@proxmox01:~# ls -l /dev/bus/usb/004/005 | |
| crw-rw-r-- 1 root root 189, 388 Oct 25 16:19 /dev/bus/usb/004/005 |
| #!/bin/sh | |
| ########################################################################## | |
| # Note: you must have set up your Travis CI environment variables for this | |
| # project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID | |
| # For more details, see the Telegram documentation at: | |
| # - https://core.telegram.org/bots/api | |
| # and the blog posts at: | |
| # - https://ansonvandoren.com/posts/telegram-notification-on-deploy/ | |
| # - https://ansonvandoren.com/posts/travis-telegram-integration/ |
| sudo -i | |
| apt-get update | |
| apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common | |
| mkdir -p /etc/docker | |
| echo '{"dns": ["8.8.8.8", "8.8.4.4"]}' > /etc/docker/daemon.json | |
| curl -sSL https://get.docker.com | sh | |
| curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" | bash -s |
| alias dcp='docker-compose -f /opt/docker-compose.yml ' | |
| alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel' | |
| alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" ' | |
| alias df='df -h -x aufs -x tmpfs -x udev' | |
| alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default' |
| [ | |
| { | |
| "id": "e6314782.bec858", | |
| "type": "mqtt in", | |
| "z": "2b42b2a.11da84e", | |
| "name": "Tautulli", | |
| "topic": "tautulli", | |
| "qos": "2", | |
| "broker": "37dc943f.c419dc", | |
| "x": 160, |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| This script is a copy of https://marekbosman.com/site/automatic-update-of-cloudflare-ip-addresses-in-nginx/ | |
| # How to use? | |
| ```sh | |
| wget https://gist.githubusercontent.com/AidasK/27aa5d6f918eca12d95427178b5aaa59/raw/e3ce185de43d89c237e081d3f56e5a79024b4115/cloudflare-update-ip-ranges.sh -P /usr/local/bin/ | |
| chmod +x /usr/local/bin/cloudflare-update-ip-ranges.sh | |
| ``` | |
| add `include /etc/nginx/cloudflare;` this line to /etc/nginx/nginx.conf (above include `/etc/nginx/conf.d/*.conf;`) | |
| ```sh |
| # Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant | |
| # Twitter link: https://goo.gl/e3y7pa | |
| # | |
| # 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA | |
| # OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin | |
| # | |
| # 2. Below the Home Assistant configuration: | |
| script: | |
| check_sonoffs_version: |
| File | Purpose |
|---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |