This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function composer_update($projectDir) | |
{ | |
echo "Processing ", basename($projectDir), "\n"; | |
passthru(sprintf('composer update --working-dir %s', escapeshellarg($projectDir))); | |
} | |
$dir = getcwd(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// hack for https proxies | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) { | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' && isset($_SERVER['SERVER_PORT']) && in_array($_SERVER['SERVER_PORT'], [80, 82])) { // https over proxy | |
$_SERVER['HTTPS'] = 'On'; | |
$_SERVER['SERVER_PORT'] = 443; | |
} elseif ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'http' && isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 80) { // http over proxy | |
$_SERVER['HTTPS'] = 'Off'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Rohlikcz\RabbitMq; | |
use Rohlikcz\Identified; | |
use Rohlikcz\InvalidArgumentException; | |
use Rohlikcz\InvalidStateException; | |
use Doctrine\Common\Util\ClassUtils; | |
use Kdyby; | |
use Nette; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ${NAMESPACE}; | |
use Nette; | |
use Kdyby; | |
use Kdyby\Doctrine\QueryBuilder; | |
use Kdyby\Persistence\Queryable; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"methodCalls": [ | |
{ | |
"class": "\\Mockery", | |
"method": "mock", | |
"position": 0, | |
"mask": "%s|\\Mockery\\MockInterface" | |
}, | |
{ | |
"class": "\\Nette\\DI\\Container", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_log syslog:server=unix:/var/log/nginx.sock; | |
http { | |
log_format verbose '$remote_addr - $remote_user $host "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'; | |
map $status $loggable { | |
~^[2] 0; | |
default 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Kefir from 'kefir'; | |
import {List, Stack} from 'immutable'; | |
import {comp, filter, map} from 'transducers-js'; | |
function register(stream, messageType, handler) { | |
let xform = comp( | |
filter(x => x.first() === messageType), | |
map(x => x.rest())); | |
stream.transduce(xform).onValue(handler); | |
} |
- Note that SHA2 hash algorithm may be not supported on older systems (Windows XP, Windows 2003, among others).
- Be aware that mandatory https on SNI vhosts eliminate [Internet Explorer on Windows XP, among others] (http://en.wikipedia.org/wiki/Server_Name_Indication#Web_browsers.5B6.5D).
- For updated ssl_ciphers, I refer you to these two sources
- The for this fork is based on