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!
# Copy the secret. | |
kubectl get secret jx-basic-auth --namespace=jx --export -o yaml | | |
kubectl apply --namespace=jx-stagin -f - |
#Download the kubeconfig | |
curl -o get-kubeconfig.sh \ | |
https://raw.githubusercontent.com/gravitational/teleport/master/examples/gke-auth/get-kubeconfig.sh | |
#make executable | |
chmod +x get-kubeconfig.sh |
# Pull all remote branches | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |
# Find process running on port 8080 | |
lsof -i:8080 | |
# Just kill it | |
kill -9 $(lsof -t -i:8080) | |
# find process listening on port 9200 | |
lsof -nP -i4TCP:$PORT | grep LISTEN |
# delete docker images that are dangling | |
docker rmi $(docker images -f "dangling=true" -q ) --force | |
# delete images with the status 'exited' | |
docker rmi $(docker ps --all -f "status=exited" -q) | |
# A nice holistic cleanup approach named: Scorched Earth Cleanup. | |
# Kindly provided by James Todd (https://twitter.com/jwtodd) |
# Install required module | |
Install AzureRM Module | |
# Load Module | |
Import AzureRM Module | |
# Create a Credential Object | |
$clientID = <CLIENT_ID> | |
$key = <CLIENT_SECRET> | |
$SecurePassword = $key | ConvertTo-SecureString -AsPlainText -Force |
module.exports = { | |
getText: function(req,res){ | |
var _text = req.param('text'); | |
var _splitUpWords = _text.split(' '); | |
var _wordCount = {}; | |
// store all words in an object |
#Get all Hosts and public IP addresses on all namespaces | |
kubectl get ing --all-namespaces | awk {'print $3" " $4'} | column -t |
aws ec2 delete-key-pair --key-name mykeyname --region us-west-2 |