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
| volumes: | |
| dados: | |
| driver: local | |
| driver_opts: | |
| type: nfs | |
| o: addr=192.168.0.1,rw,async,lock,local_lock=none,nfsvers=4.2 | |
| device: :/path |
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
| from zeep import Client | |
| from zeep.transports import Transport | |
| transport = Transport(session=requests.Session(), timeout=10, operation_timeout=10) | |
| transport.session.auth = requests.auth.HTTPBasicAuth( user, pass ) | |
| SCCP = Client('https://dominio.br/xxxs/CadastroPessoaService?wsdl', transport=transport) | |
| vinculos = SCCP.service.getPessoaGoogle( idpessoa ) | |
| vinculos = dict ( zeep.helpers.serialize_object( vinculos ) ) |
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
| import requests | |
| rest_url = 'https://dominio.br/rest/xxx/removerPessoaDefinitivamenteGoogle' | |
| response = requests.get(rest_url, auth=( usuario , senha ), params={ 'email' : email, 'idPessoa': idpessoa } ) | |
| if response.status_code == 200: | |
| return response.json() | |
| return {} |
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
| def printd( o ): | |
| for atributo in dir(o): | |
| valor = getattr(o, atributo) | |
| tipo = type(valor) | |
| print(f"Atributo: {atributo}, Valor: {valor}, Tipo: {tipo}") |
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
| version: "3.5" | |
| services: | |
| trino: | |
| image: trinodb/trino:426 | |
| depends_on: | |
| - postgresql | |
| - mongodb | |
| ports: | |
| - 8080:8080 | |
| configs: |
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
| deploy: | |
| # Desabilita Routing MESH | |
| endpoint_mode: dnsrr | |
| # Força deploy em um determinado host | |
| placement: | |
| constraints: | |
| - "node.hostname==gpu1" |
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
| systemctl disable systemd-resolved | |
| systemctl stop systemd-resolved | |
| rm /etc/resolv.conf | |
| echo "nameserver 150.162.1.33" > /etc/resolv.conf | |
| echo "nameserver 150.162.2.33" >> /etc/resolv.conf | |
| reboot |
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
| services: | |
| db: | |
| image: postgres:15 | |
| command: -c shared_buffers=16GB -c max_connections=200 -c work_mem=80MB | |
| volumes: | |
| - /dados:/var/lib/postgresql/data | |
| - ./sql:/docker-entrypoint-initdb.d | |
| environment: | |
| - POSTGRES_DB=db | |
| - POSTGRES_PASSWORD=dbpass |
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
| entrypoint: ["tail", "-f", "/dev/null"] |
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
| #/etc/docker/daemon.json | |
| { | |
| "log-driver": "local", | |
| "log-opts": {"max-size": "10m","max-file": "3"}, | |
| "default-runtime": "nvidia", | |
| "runtimes": { | |
| "nvidia": { | |
| "path": "nvidia-container-runtime", | |
| "runtimeArgs": [] | |
| } |
NewerOlder