Skip to content

Instantly share code, notes, and snippets.

View apurvc's full-sized avatar

Apurv Chandra apurvc

  • London,UK
View GitHub Profile
from faker import Faker
import random
import csv
fake = Faker()
# Number of users and orders to generate
num_users = 100
num_orders = 20000
from faker import Faker
import random
import csv
fake = Faker()
# Number of records to generate
num_records = 1000
with open('complex_sample_data.csv', mode='w', newline='') as file:
@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/