Skip to content

Instantly share code, notes, and snippets.


Gani Rakhmatov rahmatov

View GitHub Profile
rahmatov / html5_video_conv.bash
Created Dec 4, 2018 — forked from zpea/html5_video_conv.bash
little shell script to convert video files to the various HTML5 video formats/codecs using ffmpeg. Also generates the line for embedding the video using the videoJS plugin for wordpress.
View html5_video_conv.bash
# video conversion script for publishing as HTML 5 video, via videojs (with hd button extension)
# 2011 by zpea
# feel free to use as public domain / Creative Commons CC0 1.0 (
rahmatov /
Created Nov 26, 2018 — forked from 1hakr/
Supercharge your NGIX config
proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off;
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
location /api/ {
# Rate Limiting
limit_req zone=reqlimit burst=20; # Max burst of request
rahmatov / nginx.conf
Created Nov 24, 2018 — forked from rustamtolipov/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View flussonic-securelink.php
# setting up irq affinity according to /proc/interrupts
# 2008-11-25 Robert Olsson
# 2009-02-19 updated by Jesse Brandeburg
# > Dave Miller:
# (To get consistent naming in /proc/interrups)
# I would suggest that people use something like:
# char buf[IFNAMSIZ+6];
# sprintf(buf, "%s-%s-%d",
rahmatov /
Created Jan 1, 2018 — forked from matriphe/
Bash Script to notify via Telegram Bot API when user log in SSH
# save it as /etc/profile.d/
# use jq to parse JSON from
# get jq from here
DATE_EXEC="$(date "+%d %b %Y %H:%M")"
if [ -n "$SSH_CLIENT" ]; then
rahmatov /
Created Nov 9, 2016 — forked from denji/
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 400,000 to 500,000 requests per second (clustered), most what i saw is 50,000 to 80,000 (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.

You can’t perform that action at this time.