Skip to content

Instantly share code, notes, and snippets.

View agent-simon-s's full-sized avatar

Simon Sutherland agent-simon-s

View GitHub Profile
@agent-simon-s
agent-simon-s / JS-log-vars.sublime-snippet
Last active November 4, 2017 03:09
Sublime: Snippit JS log vars
<snippet>
<content><![CDATA[
console.log("Hello, ${1:this}: "+${2:snippet}+\n);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>console.f</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.javascript</scope> -->
</snippet>
@agent-simon-s
agent-simon-s / sublime-packages-of-note.txt
Last active November 6, 2017 04:03
Sublime: packages of note
Essential
[x] 01 PleaseReadMe -displays package info
[ ] 02 Theme-soda
[ ] 03 GIST
[x] 04 Emmet
[x] 05 side bar enhancements
Functional
[ ] 06 line endings
[ ] 07 SFTP
[ ] 08 auto file name
@agent-simon-s
agent-simon-s / Sh-profile-starter.sh
Created November 3, 2017 09:30
Sh: .profile starter
echo "*** executing ~/.profile 1st"
#
#
#cal
#Prompt
#PS1="\W \$" # working-dir + $ or # for root
#PS1="\w \$" # full working-dir + $ or # for root
PS1="\t \W \$" # 24hr time w/ sec + working-dir + $ or # for root
@agent-simon-s
agent-simon-s / Sh-ver-alias.sh
Created November 3, 2017 09:26
Sh: multi-version alias
alias ver='echo "---------------------------------------------------------"
httpd -v
ruby -v
echo "node.js:"; node -v
echo "npm:"; npm -v
grunt -V
php -v
mysql -h localhost -V
composer --version
git --version
@agent-simon-s
agent-simon-s / gist:be9413c45737f54b6ee19f9dce713ec3
Last active November 3, 2017 09:22
Sh: project function template
function myFn() {
cd /Users/Shared/Workspace/; pwd;
if [[ "$@" == "-g" ]]
then
echo "Checking Git Status"; git status;
else
#echo "NO status"
fi
if [[ "$@" == "-b" ]]
then