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> { | 
| 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", | 
| public class CustomerController : Controller | |
| { | |
| public ViewResult Index() | |
| { | |
| return View(); | |
| } | |
| public ViewResult Edit() | |
| { | |
| var existingCustomer = new Customer(); | 
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |