Skip to content

Instantly share code, notes, and snippets.

Bem-vindo ao tutorial de instalação do MongoDB no Linux
Iremos descrever o passo a passo para a instalação da ferramenta, é importante que vocês sigam a ordem especificada abaixo:
Atenção: os exemplos do tutorial serão mostrados para um sistema Ubuntu, caso esteja em uma distribuição Linux diferente algumas etapas podem variar)
O primeiro passo é a instalação do pacote para o MongoDB. Abra um terminal e importe a chave GPG do repositório oficial com o comando:
$ wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
Deve aparecer uma resposta OK após a importação (conforme a imagem)
@edueo
edueo / config.env
Created June 15, 2021 14:28 — forked from gabrielfeitosa/config.env
Blue/Green deployment (Traefik, docker)
ENVIRONMENT=dev
OTHER_CONFIG=BLAH
@edueo
edueo / numerosPorExtenso.js
Last active March 16, 2021 15:40
Resolução live coding
const assert = require('assert');
const numerosPorExtenso = {
0: 'zero',
1: 'um',
2: 'dois',
3: 'três',
4: 'quatro',
5: 'cinco',
6: 'seis',
7: 'sete',
@edueo
edueo / description.md
Created March 16, 2021 14:10 — forked from gbrlsnchs/description.md
Números por Extenso

Challenge Description

Fazer uma função que receba um número inteiro entre 0 e 999 e retorne uma string, que é esse número por extenso em português.

Baby steps: recomendamos que você comece pelos menores números e vá evoluindo o algoritmo até resolver os maiores.

A cada passo que der, tenha testes unitários mostrando o funcionamento, independentemente de estar usando um framework ou não.

@edueo
edueo / pair-programming.md
Created June 7, 2019 10:11 — forked from rouzbeh84/pair-programming.md
resources for pair programming remotely and on site

Guide Page

To start using this site you need to have a GitHub account to sign in. Once signed in it will create your profiles information based on your GitHub account and return you to your brand new profile page. Click the profile editor button to enter in if you want to be a student, partner or teacher. You should also enter in what skills you have and what skills you are looking to learn on this page.

Once you have your profile how you like it, head on over to the search page to look for what you want to use on your next project and what kind of partner you are looking for. After hitting the search button we will find the very best matches for you to begin your pair programming journey!


What is Pair Programming?

files:
"/etc/php.d/99uploadsize.ini":
mode: "000644"
owner: root
group: root
content: |
upload_max_filesize = 100M
post_max_size = 100M
commands:
remove_old_ini:
@edueo
edueo / DockerfilePersonaAPI
Created December 7, 2018 14:39
Dockerfile Persona API
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CONSIDERAÇÕES #
# - As imagens do alpine da Microsoft são para o .NET CORE 2.1 #
# - Utiliza dois containers para a montagem da imagem (Multisgage) #
# - Container compila, e as dlls são enviadas para um novo #
# - Cada um possui uma imagem base especifica #
# - A variável de ambiente "ASPNETCORE_URLS" é obrigatória para o #
# bind #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
FROM microsoft/dotnet-nightly:2.0-sdk AS build
@edueo
edueo / activate_venv_on_win_in_mingw.sh
Created December 2, 2018 16:17
Activate virtualenv on Windows in MinGW
. .venv/Scripts/activate
@edueo
edueo / URPreferences.xml
Last active May 30, 2018 12:40
Install universal player - MacOS
<?xml version="1.0" encoding="UTF-8"?>
<preferences>
<option name="ACTION_DELAY_0" value="2000"/>
<option name="ACTION_DELAY_1" value="2000"/>
<option name="ACTION_DELAY_2" value="2000"/>
<option name="ACTION_DELAY_3" value="2000"/>
<option name="ACTION_DELAY_4" value="1000"/>
<option name="ACTION_DELAY_5" value="200"/>
<option name="ACTION_DELAY_6" value="200"/>
<option name="ACTION_DELAY_7" value="100"/>
@edueo
edueo / clever_algorithm.md
Last active January 31, 2018 14:30
clever_algorithm

Clever Algorithm

Find wheter or not 2 words are anagrams

  • Map each of 26 english characters (A,B,C,D ... Z) to a primer number
  • Then multiply the char of each word
  • Two words are anagrams if their products are the same
E.g: F(A) = 2, F(E) = 5, F(R)=7