Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Comandos e instalaciones realizadas | |
# Curl | |
sudo apt install curl | |
# Docker | |
$ curl https://get.docker.com | sh | |
$ sudo usermod -aG docker michel |
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
web: | |
image: maes95/docker-compose-python-mongo | |
ports: | |
- "80:5000" | |
links: | |
- db | |
db: | |
image: mongo:3.0.2 |
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
# START MySQL | |
docker run --name master-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=pass -e MYSQL_DATABASE=test -d mysql:5.7 | |
# This command create a mysql | |
# -> Available in locahost:3306 | |
# -> With a 'root' user with pass 'pass' | |
# -> With a default database schema 'test' |
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
function printElementSimple(elem){ | |
w=window.open(); | |
w.document.write($(elem).html()); | |
w.print(); | |
w.close(); | |
} | |
document.getElementById('preview-viewer').contentWindow.print() | |
function printElement(elem, style){ |
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
echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list > /dev/null | |
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
sudo apt-key add rabbitmq-signing-key-public.asc | |
sudo apt-get update | |
sudo apt-get install rabbitmq-server -y | |
sudo service rabbitmq-server start | |
sudo rabbitmq-plugins enable rabbitmq_management | |
sudo service rabbitmq-server restart |
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
library(dplyr) | |
library(magrittr) | |
data <- read.csv("adult.csv", header = FALSE, sep = ",") | |
colnames(data) <- c("Age", | |
"Workclass", | |
"Fnlwgt", | |
"Education", | |
"EducationNum", | |
"MaritalStatus", |
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
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
wget https://bintray.com/artifact/download/vertx/downloads/vert.x-3.5.0.tar.gz | |
tar xzvf vert.x-3.5.0.tar.gz | |
# CMD | |
./vertx/bin/vertx |
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
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get -y install docker-ce |
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
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get -y install docker-ce | |
sudo docker pull maes95/vertx-chat | |
sudo docker run -p 80:8000 maes95/vertx-chat |
NewerOlder