Skip to content

Instantly share code, notes, and snippets.

View NiteshOswal's full-sized avatar
🍑
"Out of luck rather than design" - Ollie

Nitesh Oswal NiteshOswal

🍑
"Out of luck rather than design" - Ollie
View GitHub Profile

Keybase proof

I hereby claim:

  • I am niteshoswal on github.
  • I am nitsh (https://keybase.io/nitsh) on keybase.
  • I have a public key ASAXEqXa5Q0SywaSLRL4HfKsbzjsrJNHFyyFMrkUIEJQfAo

To claim this, I am signing this object:

var e=document.createElement('div');
e.id='foundee-adblock-checker';
e.style.display='none';
document.getElementById("special-place").appendChild(e);
<!DOCTYPE html>
<html>
<head>
<title>Multistore</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style type="text/css">
/**
* Background Color Change goes here
*/
<!DOCTYPE html>
<html>
<head>
<title>Multistore</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style type="text/css">
/**
* Background Color Change goes here
*/
@NiteshOswal
NiteshOswal / aws-ec2-redis-cli.md
Created January 23, 2018 16:02 — forked from todgru/aws-ec2-redis-cli.md
AWS redis-cli on EC2
@NiteshOswal
NiteshOswal / README.md
Created December 14, 2016 12:31 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.

Nginx FastCGI response buffer sizes

By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk. This process is outlined at the Nginx ngx_http_fastcgi_module page document page.

Introduction

Since disk is slow and memory is fast the aim is to get as many FastCGI responses passing through memory only. On the flip side we don't want to set an excessively large buffer as they are created and sized on a per request basis (i.e. it's not shared memory).

#include<iostream>
using namespace std;
int callA=0;
int callB=0;
int callC=0;
class A
{
protected:
@NiteshOswal
NiteshOswal / box_it.cpp
Last active January 24, 2016 07:21
This one was effed up
//Implement the class Box
//l,b,h are integers representing the dimensions of the box
// The class should have the following functions :
// Constructors:
// Box();
// Box(int,int,int);
// Box(Box);
//Overload operators + and << for the class complex
//+ should add two complex numbers as (a+ib) + (c+id) = (a+c) + i(b+d)
//<< should print a complex number in the format "a+ib"
Complex operator+(const Complex &c1, const Complex &c2) {
Complex c;
c.a = c1.a + c2.a;
c.b = c1.b + c2.b;
return c;
}
@NiteshOswal
NiteshOswal / variable_sized_arrays.cpp
Created January 23, 2016 20:35
You are given N integer sequences and Q queries. Each query is in the following format: "a b" where a denotes the index of the sequence, and b denotes the index of the element in that sequence. Your task is to find the value of the element described in each query. Input Format The first line consists of N and Q separated by a space. The followin…
/*
2 2
3 1 5 4
5 1 2 8 9 3
0 1
1 3
*/
#include<iostream>
using namespace std;
int main() {