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!
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| #!/usr/bin/env bash | |
| export PROJECT_ID=$(gcloud config get-value project) | |
| export PROJECT_USER=$(gcloud config get-value core/account) # set current user | |
| export PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)") | |
| export IDNS=${PROJECT_ID}.svc.id.goog # workflow identity domain | |
| export GCP_REGION="us-central1" # CHANGEME (OPT) | |
| export GCP_ZONE="us-central1-a" # CHANGEME (OPT) | |
| export NETWORK_NAME="default" |
| function Get-RdpLogonEvent | |
| { | |
| [CmdletBinding()] | |
| param( | |
| [Int32] $Last = 10 | |
| ) | |
| $RdpInteractiveLogons = Get-WinEvent -FilterHashtable @{ | |
| LogName='Security' | |
| ProviderName='Microsoft-Windows-Security-Auditing' |
| version: '2' | |
| services: | |
| openldap: | |
| image: osixia/openldap:1.2.3 | |
| container_name: openldap | |
| environment: | |
| LDAP_LOG_LEVEL: "256" | |
| LDAP_ORGANISATION: "Example Inc." | |
| LDAP_DOMAIN: "example.org" | |
| LDAP_BASE_DN: "" |
| import { AngularFirestore } from '@angular/fire/firestore'; | |
| import { Injectable } from '@angular/core'; | |
| import { FirestoreService } from './firebase-generic.service'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class MyEntityService extends FirestoreService<IEntity> { | |
| { | |
| "basics": { | |
| "name": "Raphael Rego", | |
| "label": "Desenvolvedor \"full stack\" com ênfase em desenvolvimento web", | |
| "picture": "", | |
| "email": "raphaelcarlosr@gmail.com", | |
| "phone": "+5511987877882", | |
| "website": "", | |
| "summary": "Desde 2004 como desenvolvedor com foco em desenvolvimento web, sou autodidata, pró-ativo, tenho em minha rotina a leituras sobre variados segmentos do desenvolvimento, tecnologia e dispositivos e como meta pessoal superar a expectativa a cada entrega. \n\nApto transcrever necessidades de negócio em funcionalidades tecnológicas. Implementar e manter sistemas com padrões e tecnologias sólidas, assim como as mais atuais. Garantir a qualidade do código fonte. Definir e gerenciar ações de devops. Elaborar e/ou manter documentação do software. Gerenciar demandas de projetos ou backlog. \n\nCapaz por experiência de implementar arquitetura de aplicações multiplataforma, criação ou definir utilização de frameworks de desenvolvimento, identidade visual em aplicações web.\n\n |
| workflow PingUrlParallel { | |
| param( | |
| [string]$url, | |
| [int]$parallelCount = 10, | |
| [int]$iterations = 10 | |
| ) | |
| foreach -parallel ($x in 1..$parallelCount) { | |
| 1..$iterations | %{ |
| # Simple PowerShell script to load-test / test REST api with headers and cookies. | |
| # Harald S. Fianbakken | |
| $headers = @{ | |
| "Accept"= "application/zip"; | |
| "Accept-Encoding"= "gzip,deflate,sdch"; | |
| "My-Token-ID" = "This_is_a_test"; | |
| }; | |
| function Create-Cookie($name, $value, $domain, $path="/"){ |
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |
| # Mac/Linux | |
| find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; | |
| # Windows | |
| FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d" |