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
<p>I use Blah and blah</p> | |
<p><markdown> | |
### config.php: ### | |
#!javascript | |
function test() | |
{ | |
return "aaa"; | |
} |
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
86,89c86,104 | |
< } | |
< | |
< if (Configure::read('debug') && $this->options['debug'] == false) { | |
< return join("\n\t", $this->View->__scripts); | |
--- | |
> } | |
> | |
> //Allow breaking up of js,css,codeblock in your html when debug is > 0 | |
> //Ex: putting 'css' in head and 'js','codeblock' at bottom before </body> |
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
23,24c23,24 | |
< $this->assertEqual($url, '/posts/'); | |
< $this->assertEqual(array('c0662a9d1c026334679f7a02e6c0f8e0' => '/posts/'), $this->HtmlHelper->_cache); | |
--- | |
> $this->assertEqual($url, '/posts'); | |
> $this->assertEqual(array('c0662a9d1c026334679f7a02e6c0f8e012a55d605aac76775a2f56efac64438a' => '/posts'), $this->HtmlHelper->_cache); | |
28c28 | |
< $this->assertEqual(array('c0662a9d1c026334679f7a02e6c0f8e0' => '/posts/'), $cache); | |
--- | |
> $this->assertEqual(array('c0662a9d1c026334679f7a02e6c0f8e012a55d605aac76775a2f56efac64438a' => '/posts'), $cache); |
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
32,33c32,39 | |
< $this->_key = 'url_map' . $this->_key; | |
< $this->_cache = Cache::read($this->_key, '_cake_core_'); | |
--- | |
> if (is_a($this, 'HtmlHelper')) { | |
> $this->_key = 'url_map_html' . $this->_key; | |
> $this->_cache = Cache::read($this->_key, '_cake_core_'); | |
> } | |
> elseif (is_a($this, 'FormHelper')){ | |
> $this->_key = 'url_map_form' . $this->_key; |
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
/etc/nginx# cat fastcgi_params | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_param REQUEST_URI $request_uri; | |
fastcgi_param DOCUMENT_URI $document_uri; |
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
* executing "ls -xt /opt/doapp/adagogo/prod/webapp/releases" | |
servers: ["XXX.compute-1.internal"] | |
D, [2010-12-28T03:43:11.464864 #3278] DEBUG -- net.ssh.transport.session[3fdec15e3870]: establishing connection to XXX.compute-1.internal:22 | |
D, [2010-12-28T03:43:11.467686 #3278] DEBUG -- net.ssh.transport.session[3fdec15e3870]: connection established | |
I, [2010-12-28T03:43:11.467818 #3278] INFO -- net.ssh.transport.server_version[3fdec15e31cc]: negotiating protocol version | |
D, [2010-12-28T03:43:11.475367 #3278] DEBUG -- net.ssh.transport.server_version[3fdec15e31cc]: remote is `SSH-2.0-OpenSSH_5.5p1 Debian-4ubuntu4' | |
D, [2010-12-28T03:43:11.475440 #3278] DEBUG -- net.ssh.transport.server_version[3fdec15e31cc]: local is `SSH-2.0-Ruby/Net::SSH_2.0.15 x86_64-linux' | |
D, [2010-12-28T03:43:11.477067 #3278] DEBUG -- tcpsocket[3fdec15e34c4]: read 784 bytes | |
D, [2010-12-28T03:43:11.477252 #3278] DEBUG -- tcpsocket[3fdec15e34c4]: received packet nr 0 type 20 len 780 | |
I, [2010-12-28T03:43:11.477360 #3278] INFO -- net.ssh.t |
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
set :application, "XXX" | |
role :app, "XXX.compute-1.internal", :primary => true | |
role :app, "XXX.compute-1.internal" | |
ssh_options[:keys] = "#{ENV['HOME']}/.ssh/dasdeploy_rsa" | |
ssh_options[:verbose] = :debug | |
ssh_options[:auth_methods] = "publickey" | |
ssh_options[:forward_agent] = true | |
ssh_options[:config]=false | |
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
$('a.addTarget').each(function(){ | |
$(this).qtip( | |
{ | |
content: { | |
text: $("#ctoPop") | |
}, | |
position: { | |
my: 'left top', | |
at: 'right top', | |
adjust: { screen: true } |
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 | |
debug('wtf'); | |
/** | |
* Application level View Helper | |
* | |
* This file is application-wide helper file. You can put all | |
* application-wide helper-related methods here. | |
* | |
* PHP versions 4 and 5 | |
* |
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
$devices = $this->find('first',array( | |
'contain'=>array( | |
'Device'=>array( | |
'fields'=>array('id','name'), | |
'conditions'=>array('Device.public'=>1,'Device.deprecated'=>0) | |
) | |
), | |
'fields'=>array('id'), | |
'conditions'=>array('Ad.id'=>$adId) | |
) |
OlderNewer