Skip to content

Instantly share code, notes, and snippets.

View rajarajankamban's full-sized avatar

Rajarajan Rajasekaran rajarajankamban

View GitHub Profile
@rajarajankamban
rajarajankamban / settings.json
Created May 31, 2020 13:33
Default VS Code settings
{
"terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
"workbench.iconTheme": "material-icon-theme",
"liveServer.settings.donotShowInfoMsg": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
@rajarajankamban
rajarajankamban / .eslintrc.json
Created January 22, 2020 07:32 — forked from leny/.eslintrc.json
ESLint config file for node.js + ES6 projects.
{
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParameters": true,
@rajarajankamban
rajarajankamban / nginx.conf
Created July 4, 2019 08:51 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@rajarajankamban
rajarajankamban / nginx-tuning.md
Created February 26, 2019 08:27 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

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.

@rajarajankamban
rajarajankamban / README.md
Created March 26, 2018 06:38 — forked from Integralist/README.md
How encryption with certificates and public/private keys work

PKI

  • PKI is based upon two keys (public and private)
  • Data can be securely encrypted using either the public or private keys
  • Data can only be decrypted when using the opposite key to that which encrypted the data
  • Use a Key Generator (e.g. ssh-keygen) to create your public/private keys
  • These keys are typically stored in ~/.ssh/
    • id_rsa (private key; do not share! typically used to decrypt data)
    • id_rsa.pub (public key; typically used to encrypt data)