Skip to content

Instantly share code, notes, and snippets.

@loipv
loipv / ._Setup Javascript Project with ES6 + Babel 7 + ESLint + Airbnb + Prettier
Created October 4, 2021 10:51 — forked from vukhanhtruong/._README.md
Setup Javascript / Nodejs Project with ES6 + Babel 7 + ESLint + Airbnb + Prettier
# Project Setup
Create a directory and run the following command.
```sh
npm init
```
For this tutorial, I will be adding an index.js file to the `src` folder, and this will be our entry point.
Our file directory should look like this.
@loipv
loipv / 1. Install Redis
Created August 26, 2021 09:05 — forked from pbolduc/1. Install Redis
Install redis on CentOS 7
# see How to Install Redis Server on CentOS 7 - http://linoxide.com/storage/install-redis-server-centos-7/
# --- Compiling ---
$ yum install gcc make tcl
$ REDIS_VER=3.2.3
$ wget http://download.redis.io/releases/redis-$REDIS_VER.tar.gz
$ tar xzvf redis-$REDIS_VER.tar.gz
$ cd redis-$REDIS_VER
$ make
$ make test

Keybase proof

I hereby claim:

  • I am loipv on github.
  • I am loipv (https://keybase.io/loipv) on keybase.
  • I have a public key ASCLfxUeLDf38hXT9t0GoQFAhBcZDFo0Ezb49HJpFiX4-wo

To claim this, I am signing this object:

@loipv
loipv / nginx-tuning.md
Created August 5, 2019 08:34 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.