Skip to content

Instantly share code, notes, and snippets.

View gaurav-dalvi's full-sized avatar

Gaurav Dalvi gaurav-dalvi

  • San Francisco, CA
View GitHub Profile
@gaurav-dalvi
gaurav-dalvi / grokking_to_leetcode.md
Created December 30, 2022 19:29 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

package kubewatch
import (
"context"
"reflect"
noironetworksv1 "github.com/gaurav-dalvi/kubewatch/pkg/apis/noironetworks/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
Command:
./acikubectl debug cluster-report --kubeconfig /etc/kubernetes/admin.conf -o foo1.tar
Running command: kubectl -n kube-system logs --limit-bytes=10048576 deployment/aci-containers-controller -c aci-containers-controller
Running command: kubectl -n kube-system describe nodes
Running command: kubectl -n kube-system describe deployment aci-containers-controller
Running command: kubectl -n kube-system describe daemonset aci-containers-host
Running command: kubectl -n kube-system describe daemonset aci-containers-openvswitch
Running command: kubectl get pods --all-namespaces --include-uninitialized
Running command: kubectl get services --all-namespaces --include-uninitialized
Website : https://atscaleconference.com/events/systems-scale/
1: Presentation from Amazon person (Doug Terry). It was about how amazon's dynamo DB has now global table feature.
The record is inserted in North America region and can be immediately accessed from Ireland region. Also it can resolve conflict
at this fast rate. The last writer wins policy.
2: From FB engineers (Madelaine Boyd + Lindsay Salisbury):
FB is using a system which is internally developed call tuperware. It's like K8S. They use systemd heavily. All containers run
on baremetal. VM scheduling and container scheduling, resource limiting is done through systemd. They use brtFS for containers.
Welcome to the ETHOS Team practical test!
The goal of this exercise is to test your general problem solving and
programming ability. You may choose any language and technology stack with which
you are comfortable.
Problem
-------
Imagine that you are tasked to design the elevator system for a building. The
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: {{ template "etcd.fullname" . }}
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
component: "{{ .Release.Name }}-{{ .Values.Component }}"
spec:
@gaurav-dalvi
gaurav-dalvi / test
Created December 22, 2017 21:54
test
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/es-service.yaml
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/kibana-deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/selvik/kubernetes/master/cluster/addons/fluentd-elasticsearch/kibana-service.yaml
kubectl get pods -n kube-system
kubectl get svc -n kube-system
---------------------------------------------------------
Work:
---------------------------------------------------------
1: On avarage, Daily how many lines of code each employee writes in this team ?
2: On avarage, Daily how many lines of code each employee commits ?
3: Do you have separate teams who are managing CI /CD pipelines ?
4: Do you have separate teams who are managing QA and Automation work ?
5: How much avagrage time does it take to push code into production once its reviewed ?
6: Does employee require to be on call over weekend to give support to customers ?
cat vcenter.tf
terraform {
required_version = "> 0.8.7"
}
# ============================================
# Authentication to vCenter server