Skip to content

Instantly share code, notes, and snippets.

View odrianoaliveira's full-sized avatar

Adriano Oliveira odrianoaliveira

View GitHub Profile
@odrianoaliveira
odrianoaliveira / docker-compose.yml
Created November 16, 2017 17:36
MongoDB Sharded Cluster
version: "2.1"
services:
cfg:
container_name: mongo_cfg
image: dadhx05.interno:9092/mongo:3.4.4
restart: unless-stopped
command: mongod --config /config/cfgsrv.yaml --port 27000
ulimits:
"""
File name: main.py
Author: adriano
Date created: 10/11/17
"""
import json
import requests
from requests.auth import HTTPBasicAuth
__HOST = "http://apisdigitais.interno:8765"
class Pouring(capacity: Vector[Int]) {
//states
type State = Vector[Int]
val initialState = capacity map (x => 0)
trait Move {
def change(state: State): State
}
#!/bin/bash
#
# Bootstrap script to install OpenJDK 1.8 and maven into Amazon Linux
#
yum install git -y
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo