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
/* SHOW ERRORS */ | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
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
// ==UserScript== | |
// @name GitHub Diff File Toggle Slide | |
// @version 0.3 | |
// @description Helps focus on individual files by collapsing and uncollapsing. | |
// @match https://github.com/*/*/commit/* | |
// @copyright 2013+, Tim A. Perez | |
// ==/UserScript== | |
$(function(){ | |
setTimeout(function(){ | |
$('#files').children('.file').children('.meta').click(function(){ |
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
mysql -u {{USER}} -p{{PASS}} -h localhost {{DB-NAME}} < {{FILE}}.sql |
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
mysqldump -u {{USER}} -p{{PASS}} {{DB NAME}} > {{FILE}}.sql |
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
stat -c '%Y' file.ext |
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
// AUTO REFRESH (Every 3 secs) | |
echo '<meta http-equiv="refresh" content="3;url=http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">'; |
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
date('Y-m-d H:i:s'); |
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
// FN Input Numbers Only | |
$.fn.inputNumOnly = function(){ | |
$(this).each(function(){ | |
$this = $(this); | |
$this.keyup(function(){ | |
var fieldVal = $this.val(); | |
if(fieldVal.search(/[^0-9?]/gi) > -1){ $this.val(fieldVal.replace(/[^0-9?]/gi,"")); } | |
}); | |
return this; | |
}); |
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 zftool (){ | |
if [ ! -f $PWD/vendor/zendframework/zftool/zf.php ] && [ -d ./vendor/ ]; | |
then | |
echo "ZFTool Not Found, I will Auto-Install ZFTool for You. Please Wait..." | |
sudo composer require zendframework/zftool:dev-master; | |
sleep 8 | |
elif [ ! -d ./vendor/ ]; | |
then | |
echo "You are not in a Zend Framework 2 Root" | |
return 0; |
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
unset -f my_function |
OlderNewer