Skip to content

Instantly share code, notes, and snippets.

View amarlearning's full-sized avatar
:shipit:

Amar Prakash Pandey amarlearning

:shipit:
View GitHub Profile
@amarlearning
amarlearning / autoexec.cfg
Last active August 12, 2021 20:51
CS:GO Autoexec.cfg
// Launch Config
// -nojoy -novid -high -threads 6 +cl_forcepreload 1 -USEALLAVAILABLECORES -fullscreen -noborder -refresh 120 -tickrate 128
// v = Jump Throw
alias "+jumpthrow" "+jump;-attack"
alias "-jumpthrow" "-jump"
bind "v" "+jumpthrow"
// X = Drop C4
bind "x" "use weapon_c4;drop;say_team Bomb is dropped.
@amarlearning
amarlearning / nginx.txt
Created April 24, 2021 18:00
Nginx Configuration
nginx version: nginx/1.19.10
built by gcc 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
configure arguments: --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid --with-http_ssl_module

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@amarlearning
amarlearning / The Two Pointer Algorithm.cpp
Last active August 6, 2017 11:37
Data Structures Algorithms
/*
Source Link: https://tp-iiita.quora.com/The-Two-Pointer-Algorithm
*/
/*
Motivation Problem: Given a sorted array A, having NN integers. You
need to find any pair(i,j) having sum as
given number X.

Keybase proof

I hereby claim:

  • I am amarlearning on github.
  • I am amarpandey (https://keybase.io/amarpandey) on keybase.
  • I have a public key ASDz_PhYUFrI1Z9PP8rsC1MfNWfwKoiw5LYptdfg9_4qcAo

To claim this, I am signing this object:

@amarlearning
amarlearning / Desktop Notifications Using Javascript.markdown
Created January 18, 2016 19:21
Desktop Notifications Using Javascript
@amarlearning
amarlearning / Slide out menu using css & Jquery.md
Last active April 5, 2017 13:14
Slide out menu using css & Jquery