Skip to content

Instantly share code, notes, and snippets.

👨‍💻
I solve problems, only to make them worse.

Divyendra Patil DivyendraPatil

👨‍💻
I solve problems, only to make them worse.
Block or report user

Report or block DivyendraPatil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DivyendraPatil
DivyendraPatil / cron-logging-script.sh
Last active Jun 30, 2019
A bash script to log output of all crons in cron.d
View cron-logging-script.sh
#!/usr/bin/env bash
# Save this file in a location where any user on your linux machine can read
# We saved it in /usr/local/bin/somefolder/cron-logging-script.sh
# Add or edit all files in cron.d whose outputs you want to collect by adding or changing the shell
# All top of the cron.d files should have SHELL=/usr/local/bin/somefolder/cron-logging-script.sh
# Get what command is going to be executed
COMMAND="$(echo "$@" | sed 's/"/\\"/g')"
@DivyendraPatil
DivyendraPatil / The Technical Interview Cheat Sheet.md
Created Mar 10, 2018 — 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.
View The Technical Interview Cheat Sheet.md

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.
You can’t perform that action at this time.