Skip to content

Instantly share code, notes, and snippets.

View Dcreo's full-sized avatar

Roman Nazarov Dcreo

View GitHub Profile
@Dcreo
Dcreo / nginx-tuning.md
Created September 6, 2018 03:48 — 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.

@Dcreo
Dcreo / ruby_on_rails_deployment.md
Created September 1, 2018 12:46 — forked from zentetsukenz/ruby_on_rails_deployment.md
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

#Docker

##Files and Folders.

|
|\_ app
|...
|\_ docker
| |
@Dcreo
Dcreo / gist:09a1f488d0345c0274e84f798534d081
Created August 25, 2018 00:43
Encoding vim nerd tree
export LC_ALL=en_US.utf-8
export LANG="$LC_ALL"
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
"\e[5~": history-search-backward
"\e[6~": history-search-forward
.inputrc