Skip to content

Instantly share code, notes, and snippets.

View edigu's full-sized avatar

Yılmaz edigu

View GitHub Profile
@edigu
edigu / ocp.php
Created July 2, 2013 13:50 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs
@edigu
edigu / chrome
Created May 16, 2013 08:51
Amazing legacy bug in Google Chrome!
var elem = document.getElementById('any-element-id');
elem.innerHTML = '<table class="bar">' + "A text ";
elem.innerHTML += "Another textual string";
elem.innerHTML += '</table>';
// Produces : "A text <table class="bar"></table>Another textual string</table>"
// Expected : "<table class="bar">A text Another textual string</table>"
// http://webdesignpatterns.org/pattern/amazing-legacy-bug-google-chrome
@edigu
edigu / gist:1257675
Created October 2, 2011 17:33
Find Duplicate files in current directory (Mac)
find . -size 20 \! -type d -exec cksum {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ' ' | uniq -d | grep -hif - /tmp/f.tmp > dup.txt