Not only useful in programming, regular expressions can make complex tasks easy in many different scenarios. Here is a great site for testing your regex:
http://rubular.com
# Magento Connect 2 cache directories and files | |
downloader/pearlib/cache/ | |
downloader/*.cfg | |
# Magento runtime media files | |
media/catalog/product/cache/ | |
media/tmp/ | |
media/js/ | |
media/css/ | |
media/.thumbs/ |
error_reporting(E_ALL); | |
ini_set('display_errors', TRUE); | |
ini_set('display_startup_errors', TRUE); |
git update-index --assume-unchanged <file> | |
Start tracking changes again run the following command: | |
git update-index --no-assume-unchanged <file> |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; |
UPDATE wp_options SET option_value = Replace(option_value, 'current-staging-domain', 'primary-domain-name'); | |
UPDATE wp_posts SET post_content = Replace(post_content, 'current-staging-domain', 'primary-domain-name'); | |
UPDATE wp_posts SET guid = Replace(guid, 'current-staging-domain', 'primary-domain-name'); |
Create a branch:
$ git branch <name_of_your_new_branch>
Push the branch on github :
$ git push origin <name_of_your_new_branch>
Switch to your new branch :
Truncate Text
truncate($STRING, $LENGTH); ?>Ways to print attributes