Skip to content

Instantly share code, notes, and snippets.

View gpascale's full-sized avatar

Greg Pascale gpascale

View GitHub Profile
@gpascale
gpascale / 0_reuse_code.js
Created June 5, 2017 00:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gpascale
gpascale / bash_cheat_sheet.sh
Last active December 8, 2017 20:21
bash cheat sheet
# Information about arguments and the current script
echo "# arguments called with ----> ${@} "
echo "# \$1 ----------------------> $1 "
echo "# \$2 ----------------------> $2 "
echo "# path to me ---------------> ${0} "
echo "# parent path --------------> ${0%/*} "
echo "# my name ------------------> ${0##*/} "
# Check that a variable is defined and not empty ("")
if [ -z "$1" ]; then