Skip to content

Instantly share code, notes, and snippets.

@theboshy
theboshy / minikubedelete
Created April 17, 2018 22:04 — forked from sharepointoscar/minikubedelete
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@theboshy
theboshy / socket port check [<python>]
Created April 19, 2018 20:23
Permite verificar si un puerto se encuentra disponible
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('127.0.0.1',3000))
if result == 0:
print "Port is open"
else:
print "Port is not open"
@theboshy
theboshy / hyper-v-mang.txt
Last active April 25, 2018 17:21
habilitar o desabilitar permanentemente Hyper-v desde comandos con permisos superiores
enable => $ dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
disable => $ dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All