Skip to content

Instantly share code, notes, and snippets.

View arturogutierrez's full-sized avatar
💻
Coding

Arturo Gutiérrez arturogutierrez

💻
Coding
View GitHub Profile
@arturogutierrez
arturogutierrez / interview_problems.kt
Created February 25, 2021 11:59
Problemas de entrevistas técnicos
/**
* Given an sorted array of integers you must to find the unique integer
* number that is not duplicated. Return -1 otherwise.
* Note: Each number only can occur up to 2 times
*
* Example 1:
* Input: [0, 0, 1, 2, 2]
* Output: 1
*/
class SingleNumber {
@arturogutierrez
arturogutierrez / mongodb_ssl_with_letsencrypt.md
Created March 28, 2016 14:37 — forked from leommoore/mongodb_ssl_with_letsencrypt.md
MongoDB 3.2.x SSL with Letsencrypt

#MongoDB 3.2.x SSL with Letsencrypt Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

##Set the hostname We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.