Skip to content

Instantly share code, notes, and snippets.

View lalitkale's full-sized avatar
🏠

Lalit Kale lalitkale

🏠
  • ATechieThought Labs
  • Dublin, Ireland
View GitHub Profile
@lalitkale
lalitkale / Dockerfile.bite_sized_networking
Created May 11, 2019 18:43 — forked from justanotherdot/Dockerfile.bite_sized_networking
A Dockerfile with (almost) all the tools mentioned in Bite Size Networking by Julia Evans
# N.B. The only tool missing here that is mentioned in the document is `zenmap`
# purely because this image is intended to be run via a CLI and `zenmap` is a GUI
# to `nmap` i.e. one can play around with the tools by running:
#
# $ docker build --name bite_size_networking:latest .
# $ docker run --rm -d --name bsn_test bite_size_networking:latest
# $ docker exec -it bsn_test bash
#
# Alternatively, one can change the `ENTRYPOINT` to `["bash"]` and run:
#
@lalitkale
lalitkale / Check-MissingOctoVariables.ps1
Created January 23, 2019 05:39 — forked from haydosw/Check-MissingOctoVariables.ps1
Checks for missing octopus variables given a project and scope to test
<#
.SYNOPSIS
Using AppName the script will find all variables for that project.
It will then look at EnvironmentToCheck for variables that have
been configured in other environments but not the one specified
i.e.
A variable named "Test" under the scope of a "Test" environment
will be reported if a "Test" variable under the "Prod" environment
@lalitkale
lalitkale / octovariables.py
Last active June 10, 2019 00:01
Json Flattening Python Code - My First Useful Solution in python
#! python
import shutil
import sys
import json
from flatten_json import flatten
# Author: Lalit kale
# Tested with python version 3.6.6
# This is the program through which build engineers can transform appsettings.json file
# into Octopus Deploy tool's variables in the format required by my employer.
@lalitkale
lalitkale / The Technical Interview Cheat Sheet.md
Created October 21, 2018 10:03 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
How to Write a Git Commit Message (2014) | Hacker News
https://news.ycombinator.com/item?id=13889155
How to Write a Git Commit Message
https://chris.beams.io/posts/git-commit/
Writing good commit messages · erlang/otp Wiki
https://github.com/erlang/otp/wiki/writing-good-commit-messages
Commit message guidelines
@lalitkale
lalitkale / pr_etiquette.md
Created July 11, 2018 15:01 — forked from mikepea/pr_etiquette.md
Pull Request Etiquette

Pull Request Etiquette

Why do we use a Pull Request workflow?

PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.

Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories

Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.

@lalitkale
lalitkale / instructions.txt
Last active February 7, 2022 22:15
Install Spinnaker on MiniKube
# Minikube addons
https://github.com/kubernetes/minikube/blob/master/docs/addons.md
#start minikube
minikube start --vm-driver hyperv --hyperv-virtual-switch "VMVirtualSwitch" --memory 12288 --cpus 4
#or
minikube start --vm-driver="hyperv" --hyperv-virtual-switch="VMVirtualSwitch" --v=7 --alsologtostderr
# minikube Patch Enviornemnt for Helm
@lalitkale
lalitkale / git tips
Created July 10, 2018 11:23 — forked from datawebbie/git tips
GIT Tips: When working in a multi OS team, make sure everyone in the team get their git line ending setting correctly. Not doing so could cause serious trouble later.
=== SETUP ===
For windows clients set autocrlf to true by typing:
$ git config --global core.autocrlf true
For Unix/Mac
$ git config --global core.autocrlf input
ALSO RUN this to change all file line endings on Linux/Mac
find . -name "*" -type f -exec dos2unix {} \;
@lalitkale
lalitkale / aks-restart-nodes.sh
Created July 3, 2018 15:50 — forked from tomasaschan/aks-restart-nodes.sh
Rolling restart of all nodes in an AKS cluster
#!/bin/bash
# TODO: probably accept these as CLI parameters or something
resourceGroup='<my-resource-group>'
cluster='<my-cluster-name>'
region='<my-region>'
group="MC_${resourceGroup}_${cluster}_$region"
function wait_for_status() {
@lalitkale
lalitkale / docker-useful-commands-for-debugging.md
Last active July 3, 2018 09:50
Docker Useful Commands for Debugging containers

Login inside the container/bash into container/get inside the container []=you need to replace it with your own container/image parameter

docker run -dit [image_name]

By ID

docker exec -i -t 665b4a1e17b6 /bin/bash

By Name

docker exec -i -t loving_heisenberg /bin/bash