rhwilr - https://gist.github.com/rhwilr/ce7338a972ef0c5585ce0c01e54bb13b#os-installation
joariasl - https://gist.github.com/joariasl/e58ca997d2581236dc56
| # Install MySQL | |
| mysql_config_file="/etc/mysql/my.cnf" | |
| echo "mysql-server mysql-server/root_password password secret" | sudo debconf-set-selections | |
| echo "mysql-server mysql-server/root_password_again password secret" | sudo debconf-set-selections | |
| apt-get -y install mysql-client mysql-server | |
| sed -i "s/bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" ${mysql_config_file} | |
| usermod -d /var/lib/mysql/ mysql |
| # Add in ~/.bashrc or ~/.bash_profile | |
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| RED="\[\033[01;31m\]" | |
| YELLOW="\[\033[01;33m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" | |
| NO_COLOR="\[\033[00m\]" |
Curated list of useful gulp plugins for awesome and easy frontend web development.
| SET FOREIGN_KEY_CHECKS=0; | |
| -- Customers | |
| TRUNCATE `customer_entity`; | |
| TRUNCATE `customer_entity_datetime`; | |
| TRUNCATE `customer_entity_decimal`; | |
| TRUNCATE `customer_entity_int`; | |
| TRUNCATE `customer_entity_text`; | |
| TRUNCATE `customer_entity_varchar`; |
| <?php | |
| define('DS', DIRECTORY_SEPARATOR); | |
| function _getExtractSchemaStatement($sqlFileName, $db) | |
| { | |
| $dumpSchema = 'mysqldump' . ' '; | |
| $dumpSchema .= '--no-data' . ' '; | |
| $dumpSchema .= '-u ' . $db['user'] . ' '; | |
| $dumpSchema .= '-p' . $db['pass'] . ' '; | |
| $dumpSchema .= '-h ' . $db['host'] . ' '; |
| <?xml version="1.0"?> | |
| <layout> | |
| <default> | |
| <!--Root/Default Layouts--> | |
| <reference name="root"> | |
| <!--Appending Block--> | |
| <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> | |
| </reference> | |
| <!--CSS and JS Files--> |