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
$(function() { | |
$('table.cake-sql-log').css({border:'red 1px dashed'}); | |
$('table.cake-sql-log tbody').hide(); | |
$('table.cake-sql-log thead') | |
.prepend($('<tr><td colspan="4"><a href="#" onclick="return sql_toggle();" style="font-weight:bold; color:red;" >Hide/Show SQLDump</a></td></tr>')); | |
}); | |
function sql_toggle (){ | |
$('table.cake-sql-log tbody').toggle(); | |
return false; |
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
chrome.tabs.executeScript(null, | |
{code:"document.body.bgColor='red'"}); |
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
Public |
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 | |
if(preg_match( '@.*\.(png|jpeg|jpg|gif|bmp)@i', $url) ){ | |
$img_type = 'image'; | |
} | |
?> |
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
Ctl+Shift+Del on Chrome opens up the "Clear Browsing Data" window |
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
extension=php_memcache.dll | |
[Memcache] | |
memcache.allow_failover = 1 | |
memcache.max_failover_attempts=20 | |
memcache.chunk_size =8192 | |
memcache.default_port = 11211 |
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 | |
/* | |
* @author Fedmich | |
* @version v1.1 | |
* File caching version | |
*/ | |
function GetHTML($url, $secs = 900) { | |
$md5 = md5($url); | |
$file = dirname(__FILE__) . "/cache/page_$md5.tmp"; |
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
netstat -o -n -a | findstr 0.0:80 |
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 | |
//in controller files | |
public function beforeFilter() { | |
parent::beforeFilter(); | |
//Cronjob mode, no views needed | |
$this->render(false); | |
//$this->autoRender = false; | |
//$this->layout = null; |
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
$(document).ready(function () { | |
var oFra = $("#iframe_id"); | |
$("#button3").click(function () { | |
oFra.attr("scrolling", "yes"); | |
oFra.attr("src", oFra.attr("src")); | |
}); | |
}); |