Skip to content

Instantly share code, notes, and snippets.

View igoralves1's full-sized avatar

Igor Alves igoralves1

View GitHub Profile
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/
@igoralves1
igoralves1 / cloudSettings
Last active June 2, 2021 13:47
VsCode SYNC vs code configuration
{"lastUpload":"2021-01-05T18:42:04.067Z","extensionVersion":"v3.4.3"}
@igoralves1
igoralves1 / function.js
Last active February 12, 2020 14:23 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
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'};
@igoralves1
igoralves1 / download_bolsa_familia.R
Created January 21, 2020 03:35 — forked from fernandobarbalho/download_bolsa_familia.R
Script para download de base de dados de bolsa família
#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
@igoralves1
igoralves1 / aws-iotThings.md
Last active January 20, 2020 16:50
Setting Up Just-in-Time Provisioning with AWS IoT Core
@igoralves1
igoralves1 / gist:d59c8454a4eef1acbf38324a5709e587
Last active September 10, 2019 21:51
Git: auto pull from repository?
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/
@igoralves1
igoralves1 / mongodb.txt
Created August 1, 2019 21:15
Install MongoDB on Ubuntu 18.04
- 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
@igoralves1
igoralves1 / mongodb.txt
Created August 1, 2019 21:15
Install MongoDB on Ubuntu 18.04
- 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