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
jhenaoz / docker-ubuntu-setup.sh
Created Aug 16, 2017
docker set up in ubuntu
View docker-ubuntu-setup.sh
#!/bin/sh
# This script is from the tutorial of set docker in ubuntu server, further info https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#next-steps
# This usually fail in aws ubuntu linux because is no extra packages in aws linux
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
sudo apt-get update
# Allow to use apt over https
@jhenaoz
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
jhenaoz / processOnPort.sh
Created Aug 23, 2019
Get process id app running on 8080
View processOnPort.sh
lsof -n -i4TCP:8080
@jhenaoz
jhenaoz / stopDockerContainers.sh
Last active Aug 23, 2019
Remove all docker containers
View stopDockerContainers.sh
#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)
You can’t perform that action at this time.