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
// Interface | |
public interface FooBar<T> { | |
// ... | |
} | |
// Impl Class | |
public class BarFoo implements FooBar<Person> { | |
// ... | |
} |
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
// Initial Setup - Get AUTH TOKEN from ngrok.com (Run this once) | |
ngrok -authtoken {AUTH TOKEN} 80 | |
// Run Ngrok on a specific Subdomain (Ex: local.ngrok.com) | |
ngrok -subdomain=local 8080 |
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
tail -f logfile.log | while read LOGLINE | |
do | |
[[ "${LOGLINE}" == *"Server Started"* ]] && pkill -P $$ tail && {DO SOMETHING HERE} | |
done |
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
$pdo = new PDO( 'mysql:dbname={DBNAME};host=localhost', $user, $pass ); |
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
git rev-parse HEAD |
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
# Exec | |
composer global require '{APP PACKAGE}' | |
# Example | |
composer global require 'phpunit/phpunit=3.7.*' |
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
# Tail Files in Directory | |
# USAGE: $ log {arg1:file filter(opt)} {arg2:string filter(opt)} | |
function log (){ | |
if [ $# -lt 1 ]; | |
then | |
tail -f * | |
fi | |
if [ $# -gt 1 ]; | |
then |
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
# Common/Important Commands | |
# See Cheatsheet - http://www.postgresonline.com/downloads/special_feature/postgresql83_cheatsheet.pdf | |
# Admin | |
psql | |
\list lists all databases | |
\dt lists all tables in the current database | |
\q quit |
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
service --status-all |
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
alias editbash='vim ~/.bashrc' | |
alias updatebash='source ~/.bashrc' | |
alias ls='ls -alC --color=auto' | |
function search (){ | |
egrep -roiI $1 . | sort | uniq | |
} | |
function whereis (){ | |
find . -name "$1*"; |