Skip to content

Instantly share code, notes, and snippets.

@onlyjsmith
onlyjsmith / items.csv
Last active March 14, 2020 12:17
items!
item price sold
a 1 false
b 2 false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@onlyjsmith
onlyjsmith / mongo-collections.sh
Created May 29, 2019 18:31
Write each collection from a given MongoDB to a separate file
#!/bin/bash
if [ ! $1 ]; then
echo " Example of use: $0 database_name [dir_to_store]"
exit 1
fi
db=$1
out_dir=$2
if [ ! $out_dir ]; then
out_dir="./"
@onlyjsmith
onlyjsmith / deployment.md
Last active March 20, 2019 14:29
Basic deployment for DiSARM

Basic deployment for DiSARM app (incl. editor and server)

This document describes deployment of the combination of three DiSARM services: app (v2), editor, and server (v8).

Prerequisites:

Server running with:

fn-hotspot-gears:
repo: https://github.com/disarm-dev/fn-hotspot-gears
ui: https://disarm.shinyapps.io/ntd-shiny-points/
uses:
- "UI for NTD use"
fn-covariate-extractor:
repo: https://github.com/disarm-platform/fn-covariate-extractor
uses:
-
version: "3.3"
networks:
traefik-net:
external: true
services:
portainer:
command: "-H unix:///var/run/docker.sock"
image: portainer/portainer
version : '3.3'
networks:
traefik-net:
external: true
services:
traefik:
image: traefik
command: --api --docker --docker.swarmMode --docker.domain=traefik --docker.watch
@onlyjsmith
onlyjsmith / openfaas-docker-compose.yml
Last active November 8, 2018 11:58
updated to work with traefik on overlay network 'traefik-net'
version: "3.3"
services:
gateway:
ports:
- 8080:8080
image: openfaas/gateway:0.9.7
networks:
- functions
- traefik-net
version: '3'
services:
datadog-agent:
image: datadog/agent:latest
deploy:
mode: global
restart_policy:
condition: any
environment:
- DD_API_KEY=$API_KEY