This file contains 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
#!/bin/bash | |
function newSite { | |
local appdir="/Applications/XAMPP/htdocs/$1" | |
local sourcedir="/Applications/XAMPP/htdocs/source" | |
local author="Andrew JD Hudson" | |
local themedir="/Applications/XAMPP/htdocs/$1/content/themes/$1" | |
local starterTheme="es-theme" | |
local httpd_vhosts="/Applications/XAMPP/etc/extra/httpd-vhosts.conf" |
This file contains 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
// Mixins for element and modifier | |
//elements get appended with "__" and the $name | |
@mixin e($name) { | |
@at-root &__#{$name} { | |
@content; | |
} | |
} | |
//modifiers get appended with "--" and the $name |
This file contains 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
# Prevent need for sudo npm install ... | |
sudo chown -R `whoami` ~/.npm | |
# Allow updating of Themes, plugins, Core in WordPress | |
sudo chown -R andrew:_www <site> | |
# Copy file from one location to another | |
# in this case the wordpress template into the test folder | |
cp -R source/wp test |
This file contains 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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"detect_slow_plugins": true, | |
"disable_colored_group_labels": true, | |
"disable_coloured_folder_labels": true, | |
"disable_formatted_linebreak": true, | |
"fade_fold_buttons": true, | |
"folder_exclude_patterns": |
This file contains 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
[ | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["ctrl+super+w"], "command": "close_all" }, | |
{ "keys": ["super+ctrl+e"], "command": "open_file", "args": {"file": "${project}" } }, | |
// { "keys": ["super+down"], "command": "goto_definition" }, | |
{ "keys": ["super+b"], "command": "toggle_side_bar" }, | |
{ | |
"keys": ["ctrl+alt+left"], | |
"command": "set_layout", |
This file contains 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
#!/bin/bash | |
function newsite { | |
local email="[email protected]" | |
local appdir="/Users/andrew/Sites/$1" | |
local httpd_vhosts="/etc/apache2/extra/httpd-vhosts.conf" | |
# local input=$1 | |
# local size=${#input} | |
# local max="8" | |
local basedir=$PWD |
This file contains 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
// original HTML, when added to post | |
<img src="http://boilerplate.dev/wp-content/uploads/2015/03/spiral_01.jpg" alt="spiral_01" width="993" height="1000" class="alignnone size-full wp-image-45" /> | |
// when change the class, order of HTML is changed. | |
<img class="alignnone wp-image-45 size-full" src="http://boilerplate.dev/wp-content/uploads/2015/03/spiral_01.jpg" alt="spiral_01" width="993" height="1000" /> | |
Need to get: | |
1. class | |
i. the number 45 from the end of wp-image-45 |
This file contains 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
pass() { | |
if [ -n "$1" ] | |
then | |
pwgen -sy $1 1 |pbcopy |pbpaste; echo " Has been copied to clipboard" | |
else | |
pwgen -sy 40 1 |pbcopy |pbpaste; echo "Has been copied to clipboard" | |
fi | |
} |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
"folder_exclude_patterns": [ | |
"node_modules", | |
"bower_components", | |
], | |
"file_exclude_patterns": [ | |
".babelrc", | |
".eslintrc*", | |
"config.json", |
This file contains 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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"detect_slow_plugins": true, | |
"disable_colored_group_labels": true, | |
"disable_coloured_folder_labels": true, | |
"disable_formatted_linebreak": true, | |
"fade_fold_buttons": true, | |
"folder_exclude_patterns": |