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
| docker logs -f $(docker ps | grep $1 | awk '{print $1}') |
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
| db.usertrials.aggregate([ | |
| { $match: { createdBy: ObjectId('5a424b78c67f03001d9958d1') } }, | |
| { | |
| $lookup: { | |
| from: 'users', | |
| localField: 'createdBy', | |
| foreignField: '_id', | |
| as: 'user', |
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
| db.proposals.find({ _id: ObjectId("5a456169824ed5001ba71259") }).snapshot().forEach( | |
| function (e) { | |
| e.company._id = ObjectId("5a4393390bc76f001b38e446") | |
| print(e.company._id) | |
| db.proposals.save(e); | |
| } | |
| ) |
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
| RESOURCE=facebookbot | |
| VNET=vnet | |
| SUBNET=mySubnet | |
| PUBLIC_IP=facebook-bot | |
| DNS_NAME=facebook-bot | |
| NETWORK_SECURITY_GROUP=fbNetworkSecurityGroup | |
| AVAILABILIT_SET=fbAvailabilitySet | |
| VM_NAME=fb-selenium | |
| LOCATION=eastus | |
| NETWORK_INTERFACE=myNic |
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
| RESOURCE=acs-test | |
| LOCATION=eastus | |
| az group create --name $RESOURCE --location $LOCATION | |
| az acr create --resource-group $RESOURCE --name testRegistryErick --sku Basic | |
| az acr login --name testRegistryErick | |
| docker images |
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
| RESOURCE=facebookBot | |
| LOCATION=eastus | |
| ACR=facebookbotregistry #importante ser tudo lowercase para o push works | |
| K8CLUSTER=fbbotk8scluster | |
| DNS_PREFIX=facebookbot | |
| REGISTRY=${ACR}.azurecr.io | |
| az group create --name $RESOURCE --location $LOCATION | |
| # az group delete -n $RESOURCE --yes |
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 node:8-alpine | |
| RUN apk add --no-cache tzdata | |
| ENV TZ 'America/Sao_Paulo' | |
| CMD while : ; do date; sleep 5; done |
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
| sudo chown $(whoami) -R /var/run/docker.sock |
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
| find . -name "*.js" -type f | |
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |
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
| /** | |
| * | |
| * @author erickwendel | |
| * | |
| Para os perguntas 6 a 10 utilize a base de dados de vendas fitposbi_prova no | |
| MongoDB. O nome do arquivo deve seguir o seguinte padrão: | |
| NOME_SOBRENOME_NOSQL_EXN.js, onde N é o número do exercício. | |
| 6. Quais os nomes, e-mails e telefone dos clientes das vendas feitas para clientes do | |
| sexo feminino? |