-https://stackoverflow.com/questions/30207649/address-already-in-use-error-in-mosquitto
In order to create an automated process we must pass trough 2 Steps:
1 - Only on time - Create a Root Certificate. It is not recomended to use the AWS-RootCA1.
# Para computadores MAC | |
# 1-Criar um arquivo `.bash_profile` se ele nao existir: | |
# 1.0 - Ir para `cd /Users/ialves/` e verificar se `.bash_profile` existe dentro desse folder `ls -a` | |
# 1.1 - Se não existir criar o arquivo `.bash_profile`: `touch .bash_profile`. Nota: o arquivo foi criado em `/Users/ialves/` mas ele pode ser acessado em `~/` | |
# 1.2 - Ir para Finder > Go > HD > Users > ialves e procurar o arquivo `.bash_profile`. Arrastar para a APP VsCode. | |
# 1.3 - Usar o seguinte código dentro do arquivo `.bash_profile`: | |
# 1.4 - From https://brew.sh/ run the following: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" . This will install brew. | |
# 1.5 - After Brew installation run: echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile and then you will have this: eval "$(/opt/homebrew/bin/brew shellenv)" in your .bash_profile | |
#. 1.6 - Run: source ~/.bash_profile to restart the bash. Chech if brew is installed and r |
Meu Dockerfile | |
FROM ribafs/ubuntu-maria | |
ENV MYSQL_ROOT_PASSWORD root | |
ENV MYSQL_ROOT_DATABASE testes | |
RUN apt-get update | |
EXPOSE 3306 | |
ADD ["script.sql", "/tmp/script.sql"] # Cria o banco e muda a senha para vazia | |
CMD ["start-mysql"] | |
RUN mysql -uroot -p${MYSQL_ROOT_PASSWORD} -e "CREATE DATABASE testes" |
https://www.nginx.com/blog/top-5-posts-r12-microservices/ | |
https://thenewstack.io/from-monolith-to-microservices/ | |
https://medium.com/@NeotericEU/how-can-you-refactor-a-monolithic-application-into-microservices-2eef8e323840 | |
https://www.nginx.com/blog/microservices-at-netflix-architectural-best-practices/ | |
https://www.nginx.com/blog/refactoring-a-monolith-into-microservices/ | |
https://www.nginx.com/blog/refactoring-a-monolith-into-microservices/ | |
https://howtodoinjava.com/microservices/microservices-definition-principles-benefits/ | |
https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet | |
https://www.garron.me/en/go2linux/how-benchmark-stress-your-apache-nginx-or-iis-server.html | |
https://kuntalchandra.wordpress.com/2015/10/10/install-apache-bench-ubuntu-14-04/ |
{"lastUpload":"2021-01-05T18:42:04.067Z","extensionVersion":"v3.4.3"} |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
#Faça download de um conjunto de tabelas do bolsa família referente a qualquer período a partir de janeiro de 2003 | |
base_address<- "http://transparencia.gov.br/download-de-dados/bolsa-familia-pagamentos/" | |
#Alterar as variáveis abaixo de acordo com o que se deseja | |
ano_ini<- 2018 | |
ano_fim<- 2018 | |
mes_ini<-1 | |
ult_mes_disp<- 2 |
-https://stackoverflow.com/questions/30207649/address-already-in-use-error-in-mosquitto
In order to create an automated process we must pass trough 2 Steps:
1 - Only on time - Create a Root Certificate. It is not recomended to use the AWS-RootCA1.
https://help.ubuntu.com/community/CloudInit | |
https://stackoverflow.com/questions/9978400/git-auto-pull-from-repository |
# Can MongoDB handle 25k concurrent requests? | |
- https://www.quora.com/Can-MongoDB-handle-25k-concurrent-requests | |
# Is MongoDB still used nowadays when PostgreSQL support jsonb, and there are other great noSQL alternatives like Cassandra? What is the scenario where MongoDB is the best tool for the job? | |
- https://www.quora.com/Is-MongoDB-still-used-nowadays-when-PostgreSQL-support-jsonb-and-there-are-other-great-noSQL-alternatives-like-Cassandra-What-is-the-scenario-where-MongoDB-is-the-best-tool-for-the-job | |
# THE INTERNET OF THINGS: FROM THEORY TO REALITY | |
- http://info.forbes.com/rs/790-SNV-353/images/Hitachi%20IoT%20Report.pdf | |
# The Internet Of Things: From Theory To Reality— How Companies Are Leveraging IoT To Move Their Businesses Forward | |
- https://www.forbes.com/forbes-insights/our-work/internet-of-things/ |
- https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04 | |
How to Install MongoDB on Ubuntu 18.04 | |
Step 1 — Installing MongoDB | |
sudo apt update | |
sudo apt install -y mongodb | |
Step 2 — Checking the Service and Database |