Skip to content

Instantly share code, notes, and snippets.

View jhenaoz's full-sized avatar

Juan David Henao Zapata jhenaoz

  • @AgileTestingColombia
  • Medellin, Colombia
View GitHub Profile
@jhenaoz
jhenaoz / gist:bc6deb0de79faeca226239b096aa7883
Created May 7, 2023 21:46
service account from gcloud account
gcloud auth application-default login --quiet --verbosity warning
@jhenaoz
jhenaoz / docker-running.sh
Created February 26, 2023 22:49
keep runing docker container
docker run ubuntu tail -f /dev/null
@jhenaoz
jhenaoz / docker-ubuntu-setup.sh
Created August 16, 2017 01:00
docker set up in ubuntu
#!/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 / stopDockerContainers.sh
Last active August 23, 2019 19:17
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
jhenaoz / processOnPort.sh
Created August 23, 2019 16:21
Get process id app running on 8080
lsof -n -i4TCP:8080
@jhenaoz
jhenaoz / promise.js
Created May 29, 2018 16:16
this is an example about promise
function wait(method, time) {
return new Promise((resolve) => {
setTimeout(resolve(method()), time);
});
}
sudo killall VDCAssistant