Skip to content

Instantly share code, notes, and snippets.

View vaquarkhan's full-sized avatar
:octocat:
while( !(succeed=try())){}

Vaquar Khan vaquarkhan

:octocat:
while( !(succeed=try())){}
View GitHub Profile
@vaquarkhan
vaquarkhan / BatchJob.java
Created January 18, 2022 05:16 — forked from javier/BatchJob.java
A tale of two streams workshop
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@vaquarkhan
vaquarkhan / How-to.txt
Created September 20, 2021 23:40 — forked from chicagobuss/How-to.txt
lambda-to-kafka
# First I created a working directory
~$ mkdir s3-kafka
# Then I installed the dependency I needed in that directory with pip
~$ cd s3-kafka
~$ pip install kafka-python -t $(pwd)
# Then I put my code into a file called s3-kafka.py
~$ vi s3-kafka.py
@vaquarkhan
vaquarkhan / hudi-glue.scala
Created September 20, 2021 16:30 — forked from igorbasko01/hudi-glue.scala
Hudi GLUE sync
// EMR Applications: Spark, Hive
// spark-shell --packages org.apache.hudi:hudi-spark-bundle_2.11:0.5.1-incubating,org.apache.spark:spark-avro_2.11:2.4.4 --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' --conf "spark.sql.hive.convertMetastoreParquet=false"
// EMR configuration:
// {
// "classification": "hive-site",
// "properties": {
// "hive.metastore.client.factory.class": "com.amazonaws.glue.catalog.metastore.AWSGlueDataCatalogHiveClientFactory",
// "hive.metastore.schema.verification": "false"
// }
@vaquarkhan
vaquarkhan / Coursera.md
Created July 17, 2021 06:29
Coursera Specializations and Courses

Coursera Specializations and Courses

Implement solutions using Google Kubernetes Engine, or GKE, including building, scheduling, load balancing, and monitoring workloads, as well as providing for discovery of services, managing role-based access control and security, and providing persistent storage to these applications.

@vaquarkhan
vaquarkhan / 1_ecs_note.md
Created June 3, 2021 22:07 — forked from ejlp12/1_ecs_note.md
ECS Best Practices Notes
@vaquarkhan
vaquarkhan / kubectl.md
Last active March 31, 2021 04:16 — forked from pydevops/kubectl.md
k8s kubectl cheat sheet

Kubernetes Cheat Sheet

A cheat sheet for Kubernetes commands.

Kubectl Alias

Linux

alias k=kubectl
@vaquarkhan
vaquarkhan / Frog Jump
Last active January 3, 2021 01:44
Google Coding
// https://leetcode.com/problems/frog-jump/
/*
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone.
The frog can jump on a stone, but it must not jump into the water.
Given a list of stones' positions (in units) in sorted ascending order,
determine if the frog is able to cross the river by landing on the last stone. Initially,
the frog is on the first stone and assume the first jump must be 1 unit.
If the frog's last jump was k units, then its next jump must be either k - 1, k, or k + 1 units.
Note that the frog can only jump in the forward direction.
Note:
@vaquarkhan
vaquarkhan / interviewitems.MD
Created December 25, 2020 08:30 — forked from KWMalik/interviewitems.MD
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
/*
@vaquarkhan
vaquarkhan / Algorithm-Java-programming- Arrays
Last active August 15, 2021 05:52
Algorithm-Java-programming- Arrays
My learning