This file contains hidden or 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
./configure \ | |
--prefix=/opt/local \ | |
--exec-prefix=/opt/local \ | |
--sysconfdir=/etc/opt/httpd \ | |
--enable-so \ | |
--disable-cgi \ | |
--with-port=81 \ | |
--enable-rewrite=static \ | |
--with-mpm=prefork |
This file contains hidden or 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
server { | |
if ( $host ~ ^allcafe.(info|ru)$ ) { | |
rewrite ^/(.*)$ http://www.allcafe.info/$1 permanent; | |
} | |
if ( $host ~* ^www\.([a-z]+)\.allcafe\.(info|ru)$ ) { | |
set $domain $1; | |
rewrite ^/(.*)$ http://$domain.allcafe.info/$1 permanent; | |
} |
This file contains hidden or 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 | |
$joinedURI = implode( '/', $url ); | |
$pageObj = getValueFromRegistry( '__database' )->select() | |
->from( 'pages' ) | |
->columns( '*' ) | |
->where( 'LEFT( ?, LENGTH( uri ) ) = uri', $joinedURI ) | |
->where( 'visible = 1' ) | |
->orderBy( array( 'LENGTH( uri ) DESC' ) ) |
This file contains hidden or 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
server { | |
if ( $host ~ ^allcafe\.(info|ru)$ ) { | |
rewrite ^/(.*)$ http://www.allcafe.info/$1 permanent; | |
} | |
if ( $host ~* ^www\.([a-z]+)\.allcafe\.(info|ru)$ ) { | |
set $domain $1; | |
rewrite ^/(.*)$ http://$domain.allcafe.info/$1 permanent; | |
} |
This file contains hidden or 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
./configure \ | |
--prefix=/opt/local \ | |
--conf-path=/etc/opt/nginx/nginx.conf \ | |
--pid-path=/opt/local/var/run/nginx.pid \ | |
--error-log-path=/opt/local/var/log/nginx/error.log \ | |
--http-log-path=/opt/local/var/log/nginx/access.log \ | |
--user=ubuntu \ | |
--group=ubuntu | |
# libssl-dev - библиотека для md5 функций OpenSSL |
This file contains hidden or 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 | |
$cnn = new AMQPConnect(); | |
# подсоединяемся | |
$exch = new AMQPExchange( $cnn ); | |
$exch->declare( 'testing', 'direct', AMQP_DURABLE ); | |
if ( true === isset( $_GET['publish'] ) ) { | |
for ( $i=1; $i<=5; $i++ ) { |
This file contains hidden or 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
./configure \ | |
--prefix=/opt/php \ | |
--sysconfdir=/etc/opt/php \ | |
--enable-fpm \ | |
--disable-cgi \ | |
--with-config-file-path=/etc/opt/php \ | |
--with-config-file-scan-dir=/etc/opt/php/conf.d/ \ | |
--enable-zip \ | |
--with-gettext \ | |
--disable-ftp \ |
This file contains hidden or 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
{ | |
map: function(doc) { | |
if (doc.subtype === 'pm') { | |
return; | |
} | |
if (typeof doc.private !== 'undefined' && doc.private === 1) { | |
return; | |
} |
This file contains hidden or 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
String.prototype.md5 = function() { | |
var safe_add = function(x, y) { | |
var lsw = (x & 0xFFFF) + (y & 0xFFFF); | |
var msw = (x >> 16) + (y >> 16) + (lsw >> 16); | |
return (msw << 16) | (lsw & 0xFFFF); | |
} | |
var rol = function(num, cnt) { | |
return (num << cnt) | (num >>> (32 - cnt)); |
OlderNewer