brew install mongodb
mkdir -p /data/db
Ensure that user account running mongod has correct permissions for the directory:
{ | |
"nodes": [ | |
{ | |
"title": "Code", | |
"icon": "images/icons/code_64.png", | |
"top": 165, | |
"left": 372, | |
"compID": "code", | |
"code": "next(null, { message : \"How does it work?\" });", | |
"id": "step_125" |
<?php | |
/** | |
*The numbers are normally composed of three parts: | |
* - 1 or 2 digits for Drupal core compatibility (Drupal 8, 9, 10, etc.). This | |
* convention must be followed. | |
* - 1 digit for your module's major release version; for example, for 8.x-1.* | |
* use 1, for 8.x-2.* use 2, for Core 8.0.x use 0, and for Core 8.1.x use 1. | |
* This convention is optional but suggested for clarity. |
; 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. |
<?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', |
#!/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 |
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
brew install memcached
/Applications/MAMP/bin/php/[php version folder]/include/php
./Applications/MAMP/bin/php/[php version folder]/include/php/configure
/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache
.extension=memcache.so
to your php.ini
/Applications/MAMP\ Pro/MAMP\ PRO.app/Contents/Resources/php[your php version].ini
cd /var/www | |
drush dl drupal --drupal-project-rename=d7 | |
cd d7 | |
drush si -y --db-url=mysql://root:personofinterest@localhost/d7 | |
drush upwd admin --password="admin" | |
//Maybe you need this | |
cd sites/default |