Skip to content

Instantly share code, notes, and snippets.

View aditikhandalkar's full-sized avatar

Aditi Khandalkar aditikhandalkar

  • Bangalore, India
View GitHub Profile
@aditikhandalkar
aditikhandalkar / gist:249ee42832354396e6e37b49d9251623
Created July 20, 2018 11:24
Understanding NP Hard and NP Complete
Polynomial Time Taking Algorithms
- Linear Search O(n)
- Binary Search O(logn)
- Matrix Mul O(n^x)
- Insertion Sort O(n^2)
- Merge Sort nlogn
Exponential Time Taking Algorithms {*=rough range }
@aditikhandalkar
aditikhandalkar / whyMavenOrGradle.md
Last active July 11, 2018 06:54
Understanding Maven and Gradle

Elasticsearch’s build system is an important part of the project which facilitates stable testing and distribution. While unseen by normal users it is at the foundation of any successful software. Late last year Elasticsearch switched to use Gradle. This talk will explore the history and motivations behind the switch as well as what continued improvements to the robustness of Elasticsearch have been made possible.

https://www.youtube.com/watch?v=6lM8meY9LJ4

@aditikhandalkar
aditikhandalkar / 1_kubernetes_on_macOS.md
Created March 12, 2018 14:02 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

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!

Prerequisites

@aditikhandalkar
aditikhandalkar / AdbCommands
Created February 8, 2018 08:59 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@aditikhandalkar
aditikhandalkar / py
Last active January 11, 2018 09:27
Amazon Page Scraper from PDP page
import boto
from boto.s3.connection import S3Connection
s3 = boto.connect_s3()
mybucket = s3.get_bucket("YOUR_BUCKET_NAME")
print mybucket
page_id = "/PAGE_NAME_OR_ID"
key_name = "prefix_or_subfolder"+ page_id
uploaded_file = mybucket.get_key(key_name)
uploaded_file.get_contents_to_filename('downloaded-file.html')