sudo apt-get update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https'); | |
const http = require('http'); | |
const fs = require('fs'); | |
const options = { | |
key: fs.readFileSync('/etc/letsencrypt/live/example.com/privkey.pem'), | |
cert: fs.readFileSync('/etc/letsencrypt/live/example.com/cert.pem'), | |
ca: fs.readFileSync('/etc/letsencrypt/live/example.com/fullchain.pem') | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function syncCollectionOnServer (collectionName, server) { | |
const schema = await fetch({ | |
url: 'http://manager.example.test/products' | |
}) | |
const collection = await fetch({ | |
method: 'post', | |
data: schema, | |
url: `${server}/${collectionName}` | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http') | |
const https = require('https') | |
function httpRequest (options, callback) { | |
const uri = new URL(options.url) | |
const httpOrHttps = uri.protocol === 'https:' ? https : http | |
const opts = { | |
headers: options.headers || {}, | |
method: 'GET', |
We need to create a new SSH key that we will give GitHub for the CI jobs.
user@computer.local api % ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/user/.ssh/id_rsa): /Users/user/.ssh/github-do-marriage_rsa
Enter passphrase (empty for no passphrase):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Magic to get bigger stack traces | |
*/ | |
const asyncHooks = require('async_hooks') | |
const stackTraces = new Map() | |
function init (asyncId) { | |
let capturedStackTrace = {} | |
Error.captureStackTrace(capturedStackTrace) | |
stackTraces.set(asyncId, capturedStackTrace.stack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
auth-ui: | |
image: msplat/auth-ui:local | |
build: ./ui/ | |
ports: | |
- 9180:80 | |
volumes: | |
- ./ui:/app |
I hereby claim:
- I am markwylde on github.
- I am markwylde (https://keybase.io/markwylde) on keybase.
- I have a public key ASA4hnfu2oDRxdAsfzboxKBLlgdlmlo2zV8Tmsr3dYN6Owo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How many swarm workers do you want? | |
WORKER_COUNT="${WORKER_COUNT:-5}" | |
# What would you like to prefix all your VM's with? | |
CLUSTER_NAME="${CLUSTER_NAME:-mycluster}" | |
# Set this to true to use virtualbox instead of digitalocean driver | |
LOCAL_VIRTUALBOX="${LOCAL_VIRTUALBOX:-true}" | |
# Virtualbox Configuration |