Skip to content

Instantly share code, notes, and snippets.

View enricocirignaco's full-sized avatar

Enrico Cirignaco enricocirignaco

View GitHub Profile
@enricocirignaco
enricocirignaco / docker_help.sh
Last active June 5, 2022 13:29
Docker Commands
#run mysql container. Login with mysql workbench (TCP/IP, 127.0.0.1, 3306, root)
docker run -p 3306:3306 --name container_name -e MYSQL_ROOT_PASSWORD=your_psw -d mysql
#run vue.js container
docker run -ti --rm -p 8080:8080 --name vue-dev --volume ${PWD}:/vue vuejs:working bash
#run node-RED container
docker run -it -p 1880:1880 -v ${PWD}:/data --name node-red nodered/node-red
@enricocirignaco
enricocirignaco / gcd.py
Created June 1, 2021 14:23
greatest common divisor (GCD) Python
a = int(input('first number '))
b = int(input('second number '))
if a < b:
x=a
a=b
b=x
else:
x=b
while x != 0: