Skip to content

Instantly share code, notes, and snippets.

View neversettlejay's full-sized avatar
:octocat:
Working to reach higher grounds

Jay Rathod neversettlejay

:octocat:
Working to reach higher grounds
View GitHub Profile
@neversettlejay
neversettlejay / gist:8960ad9b3d24f54f1bfbdf6b14c9fd24
Created December 4, 2022 06:18 — forked from Sushant/gist:3174585
Git uncommon but useful commands
# Delete Remote branch:
$ git push origin :newfeature
# Show details of a specific commit:
$ git show 44f1f96e23ecb835e4442bf464861231b2d96d7e
# Merge specific files from another branch:
# You are in the branch you want to merge to
$ git checkout <branch_you_want_to_merge_from> <file_paths...>

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@neversettlejay
neversettlejay / The Technical Interview Cheat Sheet.md
Created October 31, 2021 07:57 — 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.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@neversettlejay
neversettlejay / Tree traversals
Last active October 18, 2021 21:46
Tree traversals Recursive and Iterative
// Java program for inorder, preorder, postorder and levelorder tree traversals both recursive and iterative.
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
import java.util.ArrayList;
/* Class containing left and right child of current
node and key value*/
class Node {
@neversettlejay
neversettlejay / System Design.md
Created October 3, 2021 18:04 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?