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
nohup ant run > output.log 2>&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
grep -roi --include *.ext something . |
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 | |
header("Access-Control-Allow-Orgin: *"); | |
header("Access-Control-Allow-Methods: *"); | |
header("Content-Type: application/json"); | |
$requestData = ''; | |
if(isset($HTTP_RAW_POST_DATA) && strlen($HTTP_RAW_POST_DATA) > 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
# LINUX (TODO) | |
function whoisport (){ | |
port=$1 | |
pidInfo=$(fuser $port/tcp 2> /dev/null) | |
pid=$(echo $pidInfo | cut -d':' -f2) | |
ls -l /proc/$pid/exe | |
} | |
# CYGWIN | |
function whoisport (){ |
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
Top 5 Most Important | |
=================== | |
# zf show help screen | |
# zf modules show loaded modules | |
# zf create module <name> [<path>] | |
# zf create controller <name> <module> [<path>] | |
# zf create action <name> <controller> <module> [<path>] | |
Basic information |
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
# Note if OSX (replace ctrl with cmd key) # | |
Netbeans | |
================= | |
Open Type (Class) - ctrl + o | |
Find File - alt + Shift + o | |
Code Suggestions - alt + Enter | |
Eclipse |
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 |
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
// 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
date('Y-m-d H:i:s'); |