Skip to content

Instantly share code, notes, and snippets.

Ilya Sanosyan isanosyan

Block or report user

Report or block isanosyan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
plentz / nginx.conf
Last active Nov 21, 2019
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
kgriffs / vlc
Last active Oct 11, 2019
Run VLC from the command line on Mac OS X and stream internet radio (such as Radio Paradise).
View vlc
#!/usr/bin/env bash
/Applications/ -I rc "$@"
supairish / gist:2951524
Created Jun 18, 2012
Nginx - how to limit requests by User Agent
View gist:2951524
http {
map $http_user_agent $limit_bots {
default '';
~*(google|bing|yandex|msnbot) $binary_remote_addr;
limit_req_zone $limit_bots zone=bots:10m rate=1r/m;
server {
You can’t perform that action at this time.