Skip to content

Instantly share code, notes, and snippets.

View nelsonmarcos's full-sized avatar
💭
Infrastructure, development and leading.

Nelson Almeida nelsonmarcos

💭
Infrastructure, development and leading.
  • OLX
  • Rio de Janeiro, Brazil, Earth.
View GitHub Profile
@nelsonmarcos
nelsonmarcos / how-to-copy-aws-rds-to-local.md
Created March 30, 2023 13:15 — forked from nelson-marcos-olxbr/how-to-copy-aws-rds-to-local.md
How to copy production database on AWS RDS(postgresql) to local development database.
  1. Change your database RDS instance security group to allow your machine to access it.
    • Add your ip to the security group to acces the instance via Postgres.
  2. Make a copy of the database using pg_dump
    • $ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
    • you will be asked for postgressql password.
    • a dump file(.sql) will be created
  3. Restore that dump file to your local database.
    • but you might need to drop the database and create it first
    • $ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
  • the database is restored
@nelsonmarcos
nelsonmarcos / gist:0661dc2bc31be2aacf6793574edf8135
Created October 24, 2020 15:09
Recursos para marketing digital
# Impressionante - Marketing digital
Repositórios de recursos para marketing digital
## Afiliados
https://www.lomadee.com/<br>
https://www.admitad.com/
## Freelancers
https://www.workana.com/<br>
https://www.99freelas.com.br/
@nelsonmarcos
nelsonmarcos / falha_seguranca_zoom.md
Last active July 9, 2019 14:54
Aplicativo Zoom - Falha de segurança (não técnico)

Aplicativo Zoom - Falha de segurança

1 - O que você precisa saber?

O aplicativo Zoom possui um comportamento que permite a um site/email, mal intencionado, abrir uma sala de reunião sem autorização do usuário. Além de abrir o aplicativo, é possível que a câmera seja ligada automaticamente se o aplicativo estiver com a configuração padrão.

2 - O que devo fazer?

No Mac, abra o aplicativo ZOOM -> Preferences -> Video -> Marque a opção "Turn off my video when joining a meeting". Nos demais sistemas verifique onde desabilitar o vídeo automático.

3 - Posso usar minha câmera mesmo assim?

Things I have learned
* Build the solution with your team so they will have ownership of the solution.
* Come with a completed solution and they might see it just as tasks they have to do.
* It takes time to create a culture of feedback
* But YOU have to start
* Understand the differences
* Don't see your team as a resource. See then as people.
@nelsonmarcos
nelsonmarcos / robot.js
Created December 3, 2012 12:17 — forked from joseleme/robot.js
Merry Go round
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
robot.clone();
robot.turn(45);
this.offset = 1;
};
Robot.prototype.onIdle = function(ev) {
@nelsonmarcos
nelsonmarcos / robot.js
Created December 3, 2012 12:15
0verrun
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);