Skip to content

Instantly share code, notes, and snippets.

View manrajgrover's full-sized avatar
🐢
Expect slow responses

Manraj Singh manrajgrover

🐢
Expect slow responses
View GitHub Profile
@manrajgrover
manrajgrover / attributes.rb
Created April 20, 2019 07:48 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@manrajgrover
manrajgrover / .env.sample
Last active January 29, 2024 12:56
Quick Docker Environment for TensorFlowJS Node
root=/path/to/root
project=/path/to/project

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@manrajgrover
manrajgrover / TDA_resources.md
Created December 5, 2017 10:23 — forked from calstad/TDA_resources.md
List of resources for TDA

Quick List of Resources for Topological Data Analysis with Emphasis on Machine Learning

This is just a quick list of resourses on TDA that I put together for @rickasaurus after he was asking for links to papers, books, etc on Twitter and is by no means an exhaustive list.

Survey Papers

Both Carlsson's and Ghrist's survey papers offer a very good introduction to the subject

Other Papers and Web Resources

@manrajgrover
manrajgrover / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 17:43
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
# List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
# Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
# Grab DataFrame rows where column has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(valuelist)]
@manrajgrover
manrajgrover / introrx.md
Created April 1, 2017 13:58 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@manrajgrover
manrajgrover / CSS-Styleguide.md
Last active April 6, 2016 12:35 — forked from CuriousLearner/CSS-Styleguide.md
CSS guidelines for mozpacers repositories

This page outlines the style guide for CSS stylesheets in all Mozpacers' projects.

CSSComb

In general, all Mozpacers' repositories has a .csscomb.json file with the configuration as follows:

{
    "remove-empty-rulesets": true,
 "always-semicolon": true,
@manrajgrover
manrajgrover / The Technical Interview Cheat Sheet.md
Created February 6, 2016 05:35 — 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.