##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| #------------------------------------------ | |
| # PANTHEON DEVELOPMENT WORKFLOW v1.01 | |
| # Using the Pantheon CLI (terminus) v0.71 | |
| #------------------------------------------ | |
| # Authenticate with Pantheon. The first step, most of the time. | |
| # This is a little insecure, as it lists your password here. But it's convenient. | |
| alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD' | |
| # Update your local Pantheon site aliases | 
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 | 
| #!/bin/bash | |
| PSITE='your-site-name' | |
| PUUID='aaaaaaaa-1111-bbbb-2222-cccccccccccc' | |
| PEMAIL='[email protected]' | |
| PPASS='your-password-here--i-know' | |
| # Authenticate with Terminus | |
| drush pauth $PEMAIL --password=$PPASS | 
| language: php | |
| # | |
| # Important to note, this is the version of PHP used to run this build, not the | |
| # one used to run your Drupal installation. Ensure compatibility with the Drush | |
| # and Terminus versions you're using for this build. | |
| # | |
| php: | |
| - 5.3 | 
| #!/bin/bash | |
| #------------------------------------------------------------------------------- | |
| # PHPSWAP for changing php5 versions installed via macports in apache2 config. | |
| # | |
| # @author [email protected] | |
| # @license MIT License | |
| # | |
| # Kindly referring to the following useful help pages: | |
| # http://mark-story.com/posts/view/maintaining-two-versions-of-php-with-macports | 
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
| <?php | |
| /** | |
| * Quick script for stripping drupal packaging info. | |
| * | |
| * Run in the drupal root, or specify the root as an argument. E.g.: | |
| * | |
| * php strip_info.php path/to/drupal | |
| * | |
| */ | 
| if (isset($_SERVER['PANTHEON_ENVIRONMENT']) && | |
| $_SERVER['PANTHEON_ENVIRONMENT'] === 'live') { | |
| if ( $_SERVER['HTTP_HOST'] == 'live.SITENAME.gotpantheon.com' || | |
| $_SERVER['HTTP_HOST'] == 'www.SITENAME.com') { | |
| header('HTTP/1.0 301 Moved Permanently'); | |
| header('Location: http://SITENAME.com'. $_SERVER['REQUEST_URI']); | |
| exit(); | |
| } | |
| } | 
| /* for firefox stylish addon */ | |
| .content_body{ | |
| border:1px solid rgba(0,0,0,0.15); | |
| padding-top: 1px !important; | |
| padding-left:1px; | |
| } | |
| #main-table{ | |
| padding-top:5px; | |
| } | |
| #globalMenu {background:none !important; border:none !important} |