Skip to content

Instantly share code, notes, and snippets.

View apurvc's full-sized avatar

Apurv Chandra apurvc

  • London,UK
View GitHub Profile
@apurvc
apurvc / jq-insert-var.sh
Created December 3, 2019 15:31 — forked from joar/jq-insert-var.sh
Add a field to an object with JQ
# Add field
echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}'
# {
# "hello": "world",
# "foo": "bar"
# }
# Override field value
echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}'
{
Install kubectl
---------------
curl -LO curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/darwin/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
Install minikube
---------------
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.35.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/