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
/** | |
* Mostra números x : y para ajudar a colocar os dados nos locais certos. | |
* @param {*} doc | |
*/ | |
function mostraRegua(doc) { | |
let pH = doc.internal.pageSize.height; | |
let pW = doc.internal.pageSize.width; | |
doc.setFontSize(5); | |
doc.setTextColor(255, 0, 0); | |
doc.setDrawColor(0,0,255); |
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
[ | |
{ | |
"id": "5e1281d56ba41e33", | |
"type": "thingzi-timer", | |
"z": "644851038c5ab0c0", | |
"name": "Timer SOL Dusk + 30m", | |
"lat": "-16.6391", | |
"lon": "-49.2622", | |
"timerType": "trigger", | |
"startupMessage": true, |
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
esphome: | |
name: sherlockw2 | |
platform: ESP8266 | |
board: d1_mini | |
comment: versao 2 - 09/abr/2020 | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_pass |
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
esphome: | |
name: esp_somfy | |
platform: ESP8266 | |
board: d1_mini_lite | |
arduino_version: espressif8266@2.3.2 | |
includes: | |
- RFsomfy.h | |
- SomfyRts.h |
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
docker run \ | |
-v /root:/srv \ | |
-u $(id -u):$(id -g) \ | |
-p 9080:80 \ | |
filebrowser/filebrowser |
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
{ | |
"auths": { | |
"https://index.docker.io/v1/": { | |
"auth": "ZG1asddasdasdasdsad" | |
} | |
}, | |
"HttpHeaders": { | |
"User-Agent": "Docker-Client/18.09.4 (linux)" | |
}, |
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 volume for Portainer database | |
docker volume create portainer_data | |
# Start Portainer server | |
docker run -d \ | |
-p 8000:8000 \ | |
-p 9443:9443 \ | |
-p 9001:9000 \ |
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
{ | |
"dns": ["127.0.0.53", "10.234.11.61"], | |
"data-root": "/mnt/dados/docker", | |
"proxies": { | |
"http-proxy": "", | |
"https-proxy": "", | |
"no-proxy": "" | |
} | |
} |
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
{ | |
"auths": { | |
"https://index.docker.io/v1/": { | |
"auth": "adsdadaadddadds" | |
} | |
}, | |
"HttpHeaders": { | |
"User-Agent": "Docker-Client/18.09.4 (linux)" | |
}, |
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
#!/bin/bash | |
# Nome do container Docker | |
CONTAINER_NAME="your_container_name_here" | |
# Obtém a rede que o container Docker está utilizando | |
NETWORK_NAME=$(docker inspect $CONTAINER_NAME --format '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}') | |
# Exporta a rede como uma variável de ambiente | |
export DOCKER_CONTAINER_NETWORK=$NETWORK_NAME |
OlderNewer