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 / 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
@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 / 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 / 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 / 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-fetch-url-starters.sublime-settings
Last active November 4, 2017 03:24
Sublime fetch url starters
{
"files":
{
"jquery": "http://code.jquery.com/jquery.min.js",
"normalize": "https://github.com/necolas/normalize.css.git",
"normalize-scss": "https://github.com/JohnAlbin/normalize-scss.git"
},
"packages":
{
"bootstrap": "https://github.com/twbs/bootstrap/archive/v4-dev.zip",
@agent-simon-s
agent-simon-s / Default-user.sublime-keymap
Last active November 6, 2017 03:16
Sublime: Default user keymap
[
{ "keys": ["super+alt+tab"], "command": "toggle_side_bar" },
{ "keys": ["super+j"], "command": "join_lines" },
{ "keys": ["ctrl+super+m"], "command": "toggle_minimap" },
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.78, 0.84, 1.0],
@agent-simon-s
agent-simon-s / Preferences.sublime-settings
Last active November 7, 2017 02:33
Sublime: Preferences Gist
{
"afn_insert_width_first": true,
"afn_use_project_root": false,
"auto_complete_triggers":
[
{
"characters": "b4",
"selector": "text.html"
}
],
@agent-simon-s
agent-simon-s / SCSS-global-watch-app-style.sublime-build
Created November 4, 2017 03:51
Sublime Build SCSS global watch app style Gist
{
"cmd": ["sass", "--update", "$file:${folder}/App/style/css/${file_base_name}.css", "--watch", "--stop-on-error", "--style", "compressed", "--no-cache", "--sourcemap=none"],
"selector": "source.sass, source.scss",
"line_regex": "Line ([0-9]+):",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
@agent-simon-s
agent-simon-s / css-rule-format-archetype.css
Created November 6, 2017 01:38
CSS: rule format archetype
.foo { display:block;
opacity: 1;
visibility: visible;
position:inherit;
top: 0;
left: 0;
float:none;
margin:0px auto 1rem;
width:747px;
height:427px;