Skip to content

Instantly share code, notes, and snippets.

View ErliSoares's full-sized avatar
✔️

Erli Soares ErliSoares

✔️
  • Aegro
  • Brasil
View GitHub Profile
@ErliSoares
ErliSoares / a-mongodb-replica-set-docker-compose-readme.md
Created June 28, 2022 00:15 — forked from harveyconnor/a-mongodb-replica-set-docker-compose-readme.md
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!

@ErliSoares
ErliSoares / gen_pfx_cer.sh
Last active June 15, 2022 12:38 — forked from osvalr/gen_pfx_cer.sh
Generate pfx and cer certificates
## PFX Creation taken from https://github.com/Azure/azure-xplat-cli/wiki/Getting-Self-Signed-SSL-Certificates-(.pem-and-.pfx)
## PEM to CER (DER encoded) taken from http://stackoverflow.com/a/405545
## PFX from PEM FIles taken from https://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/
# Install `openssl` package
# Generating a private key:
openssl genrsa 2048 > private_key.pem
@ErliSoares
ErliSoares / README.md
Created July 12, 2021 02:43 — forked from FokkeZB/README.md
URL schemes for iOS and Android (2/2)
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:math' as math;
class CustomLayout extends MultiChildRenderObjectWidget {
CustomLayout({
Key key,
List<Widget> children = const <Widget>[],
}) : super(key: key, children: children);
@ErliSoares
ErliSoares / install-docker.sh
Created April 28, 2021 17:41 — forked from frgomes/install-docker.sh
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@ErliSoares
ErliSoares / dom.service.ts
Created September 7, 2020 11:17 — forked from reed-lawrence/dom.service.ts
Service to dynamically append Angular components to the body
import {
Injectable,
Injector,
ComponentFactoryResolver,
EmbeddedViewRef,
ApplicationRef,
ComponentRef
} from '@angular/core';
@Injectable()
@ErliSoares
ErliSoares / .env
Last active October 15, 2020 16:39
Api
COMPOSE_CONVERT_WINDOWS_PATHS=True
SERVER_DB_PORT=?????
SERVER_DB_USER=?????
SERVER_DB_DATABASE=?????
SERVER_DB_PASSWORD=?????
SERVER_DB_HOST=atlantasistemas.com.br
FRONTEND_VERSION=beta-0.0.55
FRONTEND_PORTA_EXTERNA=80
@ErliSoares
ErliSoares / .env
Last active August 1, 2018 22:19
Graylog
COMPOSE_CONVERT_WINDOWS_PATHS=True
GRAYLOG_HOST_EXTERNO=atlantasistemas.com.br
GRAYLOG_PORTA_EXTERNA=9000
GRAYLOG_PORTA_EXTERNA_GELF_UDP=12201