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
| ; cd into the directory you store code resources. | |
| cd ~ | |
| ; Clone PHP_CodeSniffer directly from the github repo. | |
| ; You could also install via pear. | |
| git clone [email protected]:squizlabs/PHP_CodeSniffer.git | |
| ; Clone the coder branch you want. |
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
| https://jsfiddle.net/2sxugxgd/3/ |
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
| 1. just edit config.yml file while vagrant is running. | |
| 2. run vagrant provision | |
| 3. run vagrant reload |
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
| drush sa |
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 | |
| // To set up a local environment, make a duplicate of this file and name it | |
| // local-settings.inc in the site directory that contains the settings.php file. | |
| // Ignore sites/*/local-settings.php in the .gitignore file. Change the settings.php | |
| // file to include local-settings.php if the file exists. | |
| // Point database to local service. | |
| $databases['default']['default'] = array( | |
| 'database' => 'local_db_name', |
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 | |
| for dir in /var/aegir/platforms/* | |
| do | |
| cd "$dir/sites" | |
| drush @sites -y ev "variable_set('smtp_host', 'your_host');" | |
| drush @sites -y ev "variable_set('smtp_username', 'your_user');" | |
| drush @sites -y ev "variable_set('smtp_password', 'your_pass');" | |
| drush @sites -y ev "variable_set('smtp_port', 'your_port');" | |
| done |
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
| https://www.drupal.org/files/file-types-youtube-wysiwyg.png |
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
| 1. Go to File > Edit Template > Apache > httpd.conf | |
| 2. Do a Find & Replace for MAMP_FastCgiServer_MAMP | |
| 3. Comment out the line MAMP_FastCgiServer_MAMP | |
| 4. Add a config line for your version of PHP, with the desired timeout limit at the end like so: FastCgiServer /Applications/MAMP/fcgi-bin/php5.6.2.fcgi -idle-timeout 3600 |
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
| http://nickveenhof.be/blog/simple-guide-install-apache-solr-3x-drupal-7 | |
| Launching it on mac | |
| cd /usr/local/Cellar/solr36/3.6.2/libexec/example | |
| java -jar start.jar |
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
| UPDATE wp_options SET option_value = replace(option_value, 'http://www.example.com', 'http://localhost/test-site') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, 'http://www.example.com', 'http://localhost/test-site'); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.example.com','http://localhost/test-site'); |