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 | |
/* | |
* @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
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
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
<?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
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
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
$(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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
var obj_h2 = $('h2'); | |
var h2_title = obj_h2.html(); | |
var words = h2_title.split(' '); | |
words[0] = '<span>' + words[0] + '</span>' |
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
/* | |
Hides iframe from youtube, embedded objects | |
*/ | |
function hide_other_elements(){ | |
var iframes = document.getElementsByTagName('iframe'); | |
jQuery(iframes).each(function(){ | |
if( (this.src + '').match('http://www.youtube.com/embed/') ){ | |
jQuery( this ).parent().addClass('hidden_elements'); | |
} | |
}); |