Skip to content

Instantly share code, notes, and snippets.

View ufasoli's full-sized avatar

Ulises Fasoli ufasoli

View GitHub Profile
@ufasoli
ufasoli / install_docker_centos.sh
Created June 22, 2018 12:35 — forked from opunbuds/install_docker_centos.sh
Install Docker & Docker Compose on Centos 7
#!/bin/bash
wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo yum install -y epel-release
sudo yum install -y python-pip
sudo yum upgrade -y python*
sudo pip install docker-compose --force --upgrade
@ufasoli
ufasoli / workflow.md
Created July 10, 2017 10:24
Versioning and Git Workflow

Semantic Versioning

Details:

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.

object CookieActionWrapper extends Controller {
val emailCookie = "email"
def ActionWrapper[A](action: Action[A]) = Action.async(action.parser) {
implicit request =>
val cookie = request.cookies.get(emailCookie)
// user needs to register before answering to any question
if (cookie == None) {
@ufasoli
ufasoli / .gitignore-maven-java-ide
Last active December 17, 2015 21:49
A .gitignore file that excludes the default IDE and maven files in java projects
# Eclipse
.classpath
.project
.settings/
# Intellij
.idea/
*.iws
# Mac