Skip to content

Instantly share code, notes, and snippets.

View sandeep540's full-sized avatar
🏠
Working from home

Sandeep Kongathi sandeep540

🏠
Working from home
View GitHub Profile
@sandeep540
sandeep540 / rdiff.ps1
Created November 26, 2015 05:40 — forked from cchamberlain/rdiff.ps1
Recursively diffs 2 directories (files and contents) using MD5 hashes - Includes validation for paths and optional summary export. Requires PowerShell 3.0 or later.
#########################################################################
### USAGE: rdiff path/to/left,path/to/right [-s path/to/summary/dir] ###
### ADD LOCATION OF THIS SCRIPT TO PATH ###
#########################################################################
[CmdletBinding()]
param (
[parameter(HelpMessage="Stores the execution working directory.")]
[string]$ExecutionDirectory=$PWD,
[parameter(Position=0,HelpMessage="Compare two directories recursively for differences.")]
@sandeep540
sandeep540 / README.md
Created January 20, 2017 18:23 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

@sandeep540
sandeep540 / The Technical Interview Cheat Sheet.md
Created June 2, 2017 11:50 — 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.
@sandeep540
sandeep540 / Dockerfile
Created June 14, 2019 19:32
Angular Dockerfile with multistage
# Multi-step Docker File Builder
# STEP 1 : Choosing the Base of our image
FROM node:alpine as builder
ARG env=prod
#Adding label for tagging purpose
LABEL maintainer="[email protected]"
@sandeep540
sandeep540 / Dockerfile
Last active June 14, 2019 19:35
Dockerfile multistage node
# ---- Base Node ----
FROM node:11.10 AS base
# Create app directory
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
# install app dependencies including 'devDependencies'
@sandeep540
sandeep540 / sql_create.sql
Created June 9, 2020 12:35
SQL Table and Log creation
CREATE TABLE [dbo].[Users]
(
[uuid] [uniqueidentifier] not null,
[firstname] varchar(256) null,
[lastname] varchar(256) null,
[age] int null,
[social] varchar(256) null,
[gender] varchar(10) null,
CONSTRAINT Users_Primary PRIMARY KEY (uuid)
CREATE TRIGGER User_log_INSERT on dbo.Users
AFTER INSERT AS
BEGIN
INSERT INTO dbo.Users_log
( uuid, firstname, lastname, age, social, gender, action, changeuser, modifiedOn)
SELECT i.uuid, i.firstname, i.lastname, i.age, i.social, i.gender, 'INSERTED', SUSER_NAME(), GETDATE() FROM inserted i
END
CREATE TRIGGER User_log_UPDATE on dbo.Users
AFTER UPDATE AS
version: '3.8'
services:
dragonfly1:
image: 'docker.dragonflydb.io/dragonflydb/dragonfly'
ulimits:
memlock: -1
command:
- "--memcache_port"
- "11211"
ports: