Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Maes95
Maes95 / Instalation
Last active May 10, 2022 14:06
Instalation
# Comandos e instalaciones realizadas
# Curl
sudo apt install curl
# Docker
$ curl https://get.docker.com | sh
$ sudo usermod -aG docker michel
@Maes95
Maes95 / docker-compose.yml
Last active November 14, 2019 16:29
Docker-compose example file
web:
image: maes95/docker-compose-python-mongo
ports:
- "80:5000"
links:
- db
db:
image: mongo:3.0.2
@Maes95
Maes95 / startMySQL.sh
Last active November 26, 2019 11:28
Run MySQL on Docker
# 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'
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){
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
library(dplyr)
library(magrittr)
data <- read.csv("adult.csv", header = FALSE, sep = ",")
colnames(data) <- c("Age",
"Workclass",
"Fnlwgt",
"Education",
"EducationNum",
"MaritalStatus",
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
@Maes95
Maes95 / downloadDocker.sh
Created January 31, 2018 01:09
Docker Download
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
@Maes95
Maes95 / SetUp.sh
Last active December 7, 2017 00:05
SetUp.sh
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