Skip to content

Instantly share code, notes, and snippets.

@Ananthram
Ananthram / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:25 — 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.
@Ananthram
Ananthram / gist:3a124cb428fa0e0142b804c277ac7117
Created September 8, 2017 20:40
Install latest Vagrant from deb using dpkg
1. wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb
2. sudo dpkg -i vagrant_1.9.1_x86_64.deb
3. vagrant version
@Ananthram
Ananthram / gist:a5d4ca3d6e32a3a5065484ee79c7dd96
Created September 23, 2017 00:43
Linux Shell Conditinal cheat sheet:
Linux Shell Conditinal cheat sheet:
"A ; B" Run A and then B, regardless of success of A
"A && B" Run B if A succeeded
"A || B" Run B if A failed
"A &" Run A in background.
@Ananthram
Ananthram / install_java_ansible.yml
Created September 23, 2017 10:14
Install Java 8 using Ansible
---
#http://docs.ansible.com/ansible/latest/intro_configuration.html#ask-pass
- hosts: nodes
gather_facts: no
become: yes
vars:
oracle_java_version: 8
oracle_java_home: "/usr/lib/jvm/java-{{ oracle_java_version }}-oracle"
@Ananthram
Ananthram / IpToInt.py
Created March 21, 2018 03:24
Convert IP to Integer in Python
def ipToInt(ip):
a = ip.split('.')
b = map(int, a)
return (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3]