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!
| #NoEnv | |
| #SingleInstance force | |
| SendMode Input | |
| DetectHiddenWindows, on | |
| SetWinDelay, 0 | |
| #`:: | |
| terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
| if (terminal) | |
| { |
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!
| public static class Retry | |
| { | |
| public static async Task<T> DoAsync<T>(Func<Task<T>> action, | |
| Func<T, bool> validateResult = null, | |
| int maxRetries = 10, int maxDelayMilliseconds = 2000, int delayMilliseconds = 200) | |
| { | |
| var backoff = new ExponentialBackoff(delayMilliseconds, maxDelayMilliseconds); | |
| var exceptions = new List<Exception>(); |
| import { useEffect, useState } from 'react' | |
| import { API, graphqlOperation } from 'aws-amplify' | |
| const ListTalks = ` | |
| query { | |
| listTalks { | |
| items { | |
| name | |
| description | |
| presenter { |
| import React, { Component } from "react"; | |
| import { Query } from "react-apollo"; | |
| import "./App.css"; | |
| import Repos from "./components/repos"; | |
| import { trendingRepositoriesGQLQuery } from "./data/query"; | |
| import moment from "moment"; | |
| class App extends Component { | |
| render() { | |
| const date = new moment(new Date()).subtract(1, "weeks"); |
| #!/usr/bin/env node | |
| var http = require('http'); | |
| var instanceId = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here | |
| var clientId = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here | |
| var clientSecret = "YOUR_CLIENT_SECRET_HERE"; // TODO: Replace it with your Forever Green client secret here | |
| var jsonPayload = JSON.stringify({ | |
| number: "12025550108", // TODO: Specify the recipient's number here. NOT the gateway number |
| # You Should be able to Copy and Paste this into a powershell terminal and it should just work. | |
| # To end the loop you have to kill the powershell terminal. ctrl-c wont work :/ | |
| # Http Server | |
| $http = [System.Net.HttpListener]::new() | |
| # Hostname and port to listen on | |
| $http.Prefixes.Add("http://localhost:8080/") |
| import fetch from 'isomorphic-fetch' | |
| import { ApolloClient } from 'apollo-client' | |
| import { InMemoryCache } from 'apollo-cache-inmemory' | |
| import { from, ApolloLink } from 'apollo-link' | |
| import { createUploadLink } from 'apollo-upload-client' | |
| let apolloClient = null | |
| // Apollo server polyfill | |
| if (!process.browser) { |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/ssm" | |
| ) |