Skip to content

Instantly share code, notes, and snippets.

Juan David Henao Zapata jhenaoz

Block or report user

Report or block jhenaoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jhenaoz /
Created Aug 23, 2019
Get process id app running on 8080
lsof -n -i4TCP:8080
jhenaoz / promise.js
Created May 29, 2018
this is an example about promise
View promise.js
function wait(method, time) {
return new Promise((resolve) => {
setTimeout(resolve(method()), time);
jhenaoz /
Last active Aug 23, 2019
Remove all docker containers
#Stop all docker containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
#Remove all docker images
docker rmi $(docker images -q)
# Remove all docker volume
docker volume rm $(docker volume ls -f dangling=true -q)
jhenaoz /
Created Aug 16, 2017
docker set up in ubuntu
# This script is from the tutorial of set docker in ubuntu server, further info
# This usually fail in aws ubuntu linux because is no extra packages in aws linux
sudo apt-get install \
linux-image-extra-$(uname -r) \
sudo apt-get update
# Allow to use apt over https
You can’t perform that action at this time.