Skip to content

Instantly share code, notes, and snippets.

@Krishnamurtyp
Krishnamurtyp / Minikube-on-Windows10.md
Created January 18, 2021 07:00 — forked from trisberg/Minikube-on-Windows10.md
Setting up Minikube and Helm on Windows 10

Setting up Minikube and Helm on Windows 10

Start with a basic Windows 10 Home or Pro installation. Some of the executables require to be on the system path. Simply create a bin folder under the home folder, add that folder to the "User variable" Path via "Environment Variables for your account" in "Windows Settings". That way any executable copied to this bin folder will automatically be on the path.

Development Tools

Install 7-Zip to be able to extract a variety of archive formats. After this install any typical apps needed for software development like Git and Visual Studio Code.

Also download curl and extract the package files and copy the files in the AMD64 folder to the bin folder. If, when running curl from the PowerShell command line there is a prompt saying something like "cmdlet Invoke-WebRequest ..." then this

Security Tools for AWS

I often get asked which tools are good to use for securing your AWS infrastructure so I figured I'd write a short listof some useful Security Tools for the AWS Cloud Infrastructure.

This list is not intended be something completely exhaustive, more so provide a good launching pad for someone as they dig into AWS and want to make it secure from the start.

Open Source

This section focuses on tools and services provided by the community and released as open-source.

@Krishnamurtyp
Krishnamurtyp / OOP_PYTHON.md
Created February 25, 2021 03:44 — forked from mdang/OOP_PYTHON.md
Lesson: OOP Python

OOP Python

Learning Objectives

  • Create a function that takes arguments
  • Create instances of an object from a custom class
  • Create a module and import functions into a file
  • Explain why design patterns exist and why they're useful

User Defined Functions

@Krishnamurtyp
Krishnamurtyp / PYTHON_FUNDAMENTALS.md
Created February 25, 2021 03:45 — forked from mdang/PYTHON_FUNDAMENTALS.md
Python Fundamentals

Python Fundamentals

Variables

  • Variable names can only contain these characters:
    • Lowercase letters (a through z)
    • Uppercase letters (A through Z)
    • Digits (0 through 9)
    • Underscore (_)
  • Names cannot begin with a digit.
from flask import Flask
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
api = Api(app)
users = [
{
"name": "Nicholas",
"age": 42,

Cloudera's QuickStart VM Setup

$ cat /etc/redhat-release
  • Determine the IP address of the VM (make sure the network is configured on VirtualBox first; see "Network" below)
$ ifconfig
@Krishnamurtyp
Krishnamurtyp / hadoop-sandbox.md
Created April 26, 2021 16:47 — forked from karanth/hadoop-sandbox.md
Notes on installing Hortonworks Hadoop Sandbox - I

Installing a single node hadoop cluster is not a straight forward task. It involves a bunch of different things like creating users and groups to enabling password-less ssh. Thanks to virtualization technology and hortonworks' pre-configured OS images with Hadoop and a few of its ecosystem components, the task has been greatly simplified. Though this does not enable a first time Hadoop user to learn about the system level Hadoop complexities, it simplifies administration and deployment. The user can now focus on data management and analysis.

Downloads

The 2.4GB image for the Hortonworks Hadoop sandbox can be downloaded from [here] (http://hortonworks.com/products/hortonworks-sandbox/#install). I have chosen Oracle's VirtualBox as the virtualization technology. It can be downloaded from [here] (https://www.virtualbox.org/wiki/Downloads)

Configuration

I have tried installing VirtualBox on my Windows 8 PC, that has 4GB of RAM. The documentation clearly states that if Ambari and/or HBase have to b

@Krishnamurtyp
Krishnamurtyp / intellij-idea-spark.md
Created May 3, 2021 11:24 — forked from tfolliot/intellij-idea-spark.md
A short tutorial to set up an Intellij IDEA environement able to compile and launch a Spark app (Scala)

How to setup a Spark environment with Intellij IDEA

Software Tested version
Intellij IDEA Community 2016.3.2
Scala 2.11.8
Spark 2.1.0
Linux Ubuntu 14.04
Windows 7
package net.kzk9;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.util.GenericOptionsParser;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;