Skip to content

Instantly share code, notes, and snippets.

View alksily's full-sized avatar
🏠
Working from home

Aleksey Ilyin alksily

🏠
Working from home
View GitHub Profile
@alksily
alksily / readme.md
Created March 1, 2019 12:20
Debian Nginx+PHP7+MySQL+Redis

Add additional repositories by edit file /etc/apt/sources.list for each link add contrib non-free after main

Update:
apt-get update

Optional:
apt-get install mc htop build-essential

Install one command line:
apt-get install nginx-extras php7.0-cli php7.0-fpm php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-mcrypt php7.0-sybase php7.0-mbstring php7.0-redis redis-server mysql-server mysql-client

@alksily
alksily / readme.md
Created March 1, 2019 12:18
Nginx with Push Stream Module
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key && rm nginx_signing.key
@alksily
alksily / gist:85f22a84febe44cb5fd161f6b06e2d2a
Last active May 19, 2016 18:30
Regex for parse Accept header
(?<type>(?:\w+|\*)\/(?:[\w\+]+|\*))(?:\;q=(?<q>\d(?:\.\d|))|)[\,]{0,}