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
[color] | |
status = auto | |
branch = auto | |
interactive = auto | |
diff = auto | |
[instaweb] | |
httpd = webrick | |
port = 8000 | |
[git-tmbundle "log"] | |
limit = 10 |
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
/** | |
* Publishes a message to using the ZeroMQ protocol | |
* | |
* @param string $type type of message | |
* @param string $message | |
* @return boolean | |
*/ | |
public function write($type, $message) { | |
$context = new ZMQContext(); | |
$publisher = $context->getSocket(ZMQ::SOCKET_PUB); |
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
root@vmi2495:/etc/nginx/sites-enabled# cat test.it | |
server { | |
listen 80; | |
server_name test.it; | |
rewrite ^(.*) http://www.test.it$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name www.test.it; |
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.conf | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
index index.php; | |
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
{ | |
places: { | |
properties: { | |
Place: { | |
properties: { | |
capacity: { | |
type: "integer" | |
}, | |
categories: { | |
type: "string", |
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
-- phpMyAdmin SQL Dump | |
-- version 3.5.1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Aug 30, 2012 at 10:44 AM | |
-- Server version: 5.5.19 | |
-- PHP Version: 5.4.3 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
define('NO_IDENTIFIER_ERROR', 600); | |
define('DUPLICATE_ACCOUNT_ERROR', 601); | |
define('INVALID_OAUTH_TOKEN', 602); | |
define('NOT_OWNER_ERROR', 603); | |
define('DUPLICATE_CHECKIN', 604); | |
define('VOUCHER_NOT_STARTED', 605); | |
define('VOUCHER_EXPIRED', 606); | |
define('VOUCHER_LIMIT_REACHED', 607); | |
define('DUPLICATE_VOUCHER_CLAIM', 608); |
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
/** | |
* Override Model::delete() to implement a soft-delete feature for this model | |
* requires the model to have a 'deleted' boolean column | |
* | |
* @return boolean | |
**/ | |
public function delete($id = null, $cascade = true) { | |
if ($id === null) { | |
$id = $this->id; | |
} |
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 | |
class ParentFixture extends CakeTestFixture { | |
public $import = array(); | |
protected $hasData = false; | |
protected static $truncating = false; | |
protected static $log = array(); | |
public function insert($db) { | |
self::$truncating = false; |
OlderNewer