Instantly share code, notes, and snippets.

View evil_finder.sh
find ./backup/ -name \*.php -type f -print0 | xargs -0 grep "\beval[^\w]\s*\/*\s*[\/|\*]?\s*\(?" -C 3 --color -Pzo > ev.txt
View fair_split.php
$myfile=fopen('json_holder.txt','rt');
flock($myfile,LOCK_SH);
$debnr = json_decode( file_get_contents('json_holder.txt') );
@$min = (int)reset(array_keys((array)$debnr, min((array)$debnr)));
$debnr->$min++;
fclose($myfile);
file_put_contents('json_holder.txt', json_encode($debnr,JSON_FORCE_OBJECT), LOCK_EX);
View user_keymap
{ "keys": ["f1"], "command": "git_quick_commit" },
{ "keys": ["f5"], "command": "git_raw", "args": {"command": "git push", "args": {"may_change_files": false} } }
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">