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
sudo dseditgroup -o edit -a <username> -t user <groupname> |
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
# source: https://github.com/danielbachhuber/wp-dev-docs/blob/master/performance/migrations.md | |
core install: | |
title: WordPress Trunk | |
url: http://wordpress-trunk.dev | |
admin_user: daniel | |
admin_password: daniel | |
admin_email: daniel@handbuilt.co |
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
$ sudo !! |
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
# source: http://stackoverflow.com/a/246128 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && 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
wp search-replace 'local.example.com' 'www.example.com' |
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
mysql -u<username> -p<password> <dbname> < /path/to/sqldumpfile.sql |
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
; Now this rule is applied if the pattern of the RewriteRule matches the current request | |
; URL (per-directory path stripped before) and if the condition is fulfilled. | |
; | |
; In this case the condition is only true if when mapping the request URL | |
; to the filesystem it matches either an existing file with the file size | |
; greater than 0 (-s), or a symbolic link (-l) or a directory (d). So your rule will | |
; be applied for any URL (^.*$ matches anything) that can be mapped to something | |
; existing in your filesystem. The substitution - just means to not change anything. | |
; And the NC (no case, case insensitive, useless in this context) and L (last rule if applied) | |
; are flags that modify either the pattern, replacement or the execution of the rule. |
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
'use strict'; | |
/** | |
* App Module | |
* | |
* @note | |
* ui-router setup is def incomplete. this is just to show an | |
* example of the breadcrumb setup | |
* | |
* @ngInject |
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
# ** you need to have an apache instance running already for this command to work. | |
sudo apachectl start | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist |
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
'use strict'; | |
/** | |
* Equal Heights | |
* | |
* Attach this directive to the parent/wrapping element of | |
* a bunch of elements that are columns. This directive will | |
* calculate the height of every direct child (one level down) | |
* then set all of them to be the height of the tallest one. | |
* |