Skip to content

Instantly share code, notes, and snippets.

View shubham7298's full-sized avatar
:octocat:
On a coding spree

Shubham Singh shubham7298

:octocat:
On a coding spree
View GitHub Profile
@shubham7298
shubham7298 / squah.md
Created January 18, 2019 18:04 — forked from shellkore/squah.md
squash your commits

SQUASH

Whenever you want to squash last commits in a single commit:-

first check your log

git log

CASE 1: your head is at the commit in which you want others to be squashed

@shubham7298
shubham7298 / increase-body-limit.js
Created July 3, 2019 06:23 — forked from Maqsim/413-payload-too-large-fix.js
When you face an error 413 Payload too large in NodeJS, use this to fix that out
const express = require('express');
const bodyParser = require('body-parser');
...
// Express 4.0
app.use(bodyParser.json({ limit: '10mb' }));
app.use(bodyParser.urlencoded({ extended: true, limit: '10mb' }));
// Express 3.0