Skip to content

Instantly share code, notes, and snippets.

View pythonshiva's full-sized avatar
🎯
Focusing

Shiva pythonshiva

🎯
Focusing
View GitHub Profile
@pythonshiva
pythonshiva / 1_kubernetes_on_macOS.md
Created March 8, 2019 07:47 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@pythonshiva
pythonshiva / gist:2d24aa0a5d703ce0fe5924253b31bbcb
Created December 8, 2017 10:49 — forked from bortzmeyer/gist:1284249
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys