Skip to content

Instantly share code, notes, and snippets.

View igoralves1's full-sized avatar

Igor Alves igoralves1

View GitHub Profile
@igoralves1
igoralves1 / nvm.md
Last active July 9, 2024 18:08
nvm
@igoralves1
igoralves1 / .bash_profile.sh
Last active July 9, 2024 18:13
Setup .bash_profile in a MAC AND .bashrc in Ubuntu
# 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/
@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/