This file contains hidden or 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 | |
| # based on: http://stackoverflow.com/a/35115651 | |
| git status | grep modified | cut -d' ' -f 4 | while read x; do | |
| x1="$(git show HEAD:$x | dos2unix | md5sum | cut -d' ' -f 1 )" | |
| x2="$(cat $x | dos2unix | md5sum | cut -d' ' -f 1 )" | |
| if [ "$x1" != "$x2" ]; then | |
| echo "$x NOT IDENTICAL" | |
| fi |
This file contains hidden or 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 | |
| # | |
| # @see http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04 | |
| # | |
| # Installation: Download this file and move it to the /usr/local/bin directory | |
| # | |
| if [ ! -x "$(find /usr/bin -maxdepth 1 -name 'php5*' -print -quit)" ]; then | |
| echo "PHP 5 not exist!" | |
| exit 1 |
This file contains hidden or 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
| <?php | |
| /** | |
| * @see http://www.phpbuilder.com/articles/databases/mysql/handling-hierarchical-data-in-mysql-and-php.html | |
| */ | |
| /** | |
| * @param $category_id | |
| * @return array | |
| * @return void | |
| */ |
This file contains hidden or 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
| <?php | |
| error_reporting(E_ALL | E_STRICT); | |
| require_once './app/Mage.php'; | |
| umask(0); | |
| Mage::app(); | |
| $attr = 'product_type'; //attribute code to remove |
This file contains hidden or 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-copy.sh aabb37fc243675de1194e38f75a554695ed3c111 7b6efc6a0731d0da7ce0d13b19098db2f7da224b ../uploads |
This file contains hidden or 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 | |
| #origin: http://dev.mensfeld.pl/2013/04/backup-mysql-dump-all-your-mysql-databases-in-separate-files/ | |
| TIMESTAMP=$(date +"%F") | |
| BACKUP_DIR="/mnt/backup/mysql/$TIMESTAMP" | |
| MYSQL_USER="backup" | |
| MYSQL=/usr/bin/mysql | |
| MYSQL_PASSWORD="password" | |
| MYSQLDUMP=/usr/bin/mysqldump |