Skip to content

Instantly share code, notes, and snippets.

@nishant-k1
nishant-k1 / eslint_prettier_airbnb.md
Created April 22, 2023 22:31 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@nishant-k1
nishant-k1 / config
Created September 30, 2022 01:16 — forked from rbialek/config
ssh/.config
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/user/.ssh/id_rsa
@nishant-k1
nishant-k1 / The Technical Interview Cheat Sheet.md
Created June 2, 2022 07:21 — 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!






\

@nishant-k1
nishant-k1 / infinite-scroll-ag-grid.tsx
Created May 11, 2022 23:18 — forked from buhichan/infinite-scroll-ag-grid.tsx
Create a redux-driven server side pagination, filtering and sorting data grid with the power of ag-grid and my component ag-grid-material-preset
/**
* Created by buhi on 2017/7/11.
*/
import * as React from "react"
import {Grid,GridFieldSchema,GridProps} from "ag-grid-material-preset";
import {IGetRowsParams} from "ag-grid/dist/lib/rowModels/iDatasource";
import {GridApi} from "ag-grid/dist/lib/gridApi";
import {List,Repeat} from "immutable";
type InfiniteScrollGridProps = {
@nishant-k1
nishant-k1 / gist_markdown_examples.md
Created April 27, 2022 09:48 — forked from ww9/gist_markdown_examples.md
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
ssh-keyegn
#paste public key to the remote server
ssh-add /path/to/private/key
ssh root@ip-address
sudo apt update
@nishant-k1
nishant-k1 / docker-help.md
Created September 15, 2020 21:54 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

server_name domain.com www.domain.com;
if ($host = 'domain.com') {
return 301 http://www.domain.com$request_uri;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_pass http://localhost:3000; #whatever port your app runs on
@nishant-k1
nishant-k1 / node_nginx_ssl.md
Last active July 12, 2023 18:06 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user