Skip to content

Instantly share code, notes, and snippets.

View anushshukla's full-sized avatar
💭
Silently and secretly building awesome applications

Anush Shukla anushshukla

💭
Silently and secretly building awesome applications
View GitHub Profile
@anushshukla
anushshukla / react-perf-tuning.md
Last active August 13, 2023 20:21
React Performance Investigation & Improvement

Investigate

  • LightHouse details report study helps in deducing many of the below mentioend improvements.
  • Components profiling
  • Build size analyser
  • Chrome developer tools (like network requests/responses, sources for unused code, etc).

Improvements

Phase I

@anushshukla
anushshukla / job-enquiries.md
Last active March 26, 2024 02:05
JOB posting template and job search queries

Startup queries

  • Which incubators program is the startup part of if any?
  • Which acceleator program is the startup part of if any?
  • What's the total funds raised till date?
  • What's the revenue?
  • What's the profit if profit making firm?
  • What's the total strenght?

General enquiries

  • Are medical benefits provided?
@anushshukla
anushshukla / esop-queries.md
Created April 25, 2023 13:28
ESOP queries
  • When can the vested options can be exercised? Usually, after 100% options are vested
  • Understanding the relationship between the "optionee" and the "company"
  • Is there any cliff period? How much is it? Usally, it's of 1 year.
  • What's the vesting period? Usally, it's of 4 years.
  • What's the vesting schedule? 25% options are vested at the end of first year then remaining 75% options are vested equally each month over then next 3 years.
  • Example of the calculation of exercise and purchase price of the shares
@anushshukla
anushshukla / hierarchy-engineering.md
Created April 25, 2023 13:22
Engineering hHerarchy
  • MD
  • Group CTO
  • CTO
  • AVP -> Sr. AVP -> VP
  • Sr. DoE
  • DoE
  • Sr. EM
  • EM
  • Tech Lead
  • Lead Engineer
@anushshukla
anushshukla / config
Last active July 3, 2023 10:41
Server SSH login using shell script. SH file to update ssh files to correct permissions. SSH config file for multiple GitHub repos.
# Office
Host github.com.office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Personal
Host github.com.personal
ServerAliveInterval 600
TCPKeepAlive yes
@anushshukla
anushshukla / longest-sequence-count.ts
Created March 22, 2023 14:02
Longest sequence count
/*
* You are given an unsorted array/list 'ARR' of 'N' integers.
* Your task is to return the length of the longest consecutive sequence.
* The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L]
* where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.
*/
function getHighestSequence(nums) {
const numIndex = {};
let highestPatternNumber = 0;
@anushshukla
anushshukla / solution.js
Created March 2, 2023 15:11
Given an unsorted integer array, find a pair with the given sum in it.
/*
For example,
Input:
nums = [8, 7, 2, 5, 3, 1]
target = 10
Output:
@anushshukla
anushshukla / queue.ts
Last active March 1, 2023 18:37
Data structures in Typescript
class Queue<T> {
_size: number;
_data = [] as T[];
public constructor(size: number) {
this._size = size;
}
public enqueue(element: T): void {
@anushshukla
anushshukla / oop-principles.md
Last active February 22, 2023 09:09
Programming design principles

Object Oriented Programming Priciples

Encapsulation

Example

class Person {
    // full name is encapsulated as its a private member
 private _fullName: string;
@anushshukla
anushshukla / vhost.conf
Created January 23, 2023 07:28
Apache Configurations
Define domain ultimate-local.com
Define abs_path /mnt/d/www/${domain}
SSLCertificateFile ${abs_path}/${domain}.crt
SSLCertificateKeyFile ${abs_path}/${domain}.key
<Directory ${abs_path}>
# all | none | -Indexes FollowSymLinks MultiViews Includes
AllowOverride all
# all | none | AuthConfig Indexes FollowSymLinks