Skip to content

Instantly share code, notes, and snippets.

View eightyeight's full-sized avatar

Ilia Bodrov eightyeight

View GitHub Profile
@eightyeight
eightyeight / gist:055b52b0dabfcb755ecb
Last active August 29, 2015 14:18
Yii\Nginx\Php-fpm.conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
<?php
$streamStr = parseStream();
$dataArray = stringToArray($streamStr);
$from = getFromHeader($dataArray);
if($from == '<example@esr.ru>'){
@eightyeight
eightyeight / Pyramid
Last active August 29, 2015 14:05
Pyramid Example
<?php
class Pyramid
{
/**
* @var array;
* Инстанцируемая переменная.
*/
private $instance;