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 | |
# Author: Colin Mollenhour | |
# | |
# Usage: Run from the webroot, .htaccess-combined will be created. | |
dest='.htaccess-combined' | |
pwd=`pwd` | |
echo -n "" > $dest | |
while read -r file; do | |
loc=`dirname $file` |
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
# I'm certain there's a much more elegant way to do this, but I'm | |
# not too handy with bash script. | |
# Change all the instances of 2013 copyright to 2012 | |
find . -name "*.xml" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
find . -name "*.xml.template" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
find . -name "*.php" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
find . -name "*.css" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
find . -name "*.js" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
find . -name "*.phtml" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; |
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
location ~ ^/_intellij_phpunit_launcher.php$ { | |
expires off; ## Do not cache dynamic content | |
set $args "$args&dir=$document_root&config=phpunit.xml.dist"; | |
fastcgi_pass unix://var/run/php5-fpm.sock; # Replace with your fpm pass | |
fastcgi_read_timeout 600; | |
include fastcgi_params; ## See /etc/nginx/fastcgi_params | |
} |
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
Date: Fri, 5 Jul 2013 22:41:03 -0500 | |
Subject: [PATCH] Magento_CE_1.7.0.2_v1-CSRF_Patch | |
--- | |
.../core/Mage/Catalog/Block/Product/Abstract.php | 85 ++++- | |
app/code/core/Mage/Catalog/Block/Product/View.php | 10 +- | |
.../core/Mage/Catalog/Helper/Product/Compare.php | 28 +- | |
app/code/core/Mage/Checkout/Helper/Cart.php | 26 +- | |
.../Mage/Checkout/controllers/CartController.php | 69 ++-- | |
.../Checkout/controllers/OnepageController.php | 70 +++- |
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
git diff -G '@copyright.*[Cc]opyright' --name-only | xargs -I {} sh -c 'FILE={} ; [ $(git diff -U0 -- $FILE | wc -l | tr -d " " | cut -f1-) -eq 7 ] && git add $FILE' |
NewerOlder