Skip to content

Instantly share code, notes, and snippets.

View PetroOstapuk's full-sized avatar
:octocat:
Focusing

Petro Ostapuk PetroOstapuk

:octocat:
Focusing
View GitHub Profile
@PetroOstapuk
PetroOstapuk / nginx.conf
Created September 26, 2018 20:38 — forked from leandromoreira/nginx.conf
nginx.conf optmized for http/2 = HTTPS TLS (ssl)
# command to generate dhparams.pen
# openssl dhparam -out /etc/nginx/conf.d/dhparams.pem 2048
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=5r/s;
limit_req_status 444;
limit_conn_status 503;
proxy_cache_path /var/lib/nginx/proxy levels=1:2 keys_zone=backcache:8m max_size=50m;
proxy_cache_key "$scheme$request_method$host$request_uri$is_args$args";
@PetroOstapuk
PetroOstapuk / AdbCommands
Created August 30, 2018 16:34 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell