This file contains 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 | |
/** | |
* Determine whether a given bootstrap phase has been completed | |
* | |
* This function name has a typo which makes me laugh so we choose not to | |
* fix it. Take a deep breath, and smile. See | |
* http://en.wikipedia.org/wiki/HTTP_referer | |
* | |
* | |
* @param phase |
This file contains 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
sudo /etc/init.d/hosting-queued start |
This file contains 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 up --security-only |
This file contains 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 make --working-copy --concurrency=10 http://makefile.com/makefile.make platform |
This file contains 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 | |
$sapi = php_sapi_name(); | |
if ($sapi === 'cli') { | |
print 'This is a cli request'; | |
} |
This file contains 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 zen --name="$Themename" --machine-name="$theme_machine_name" --path="sites/$site/themes/" --without-rtl |
This file contains 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 | |
// Define module download destination. | |
$site_path = drush_site_path(); | |
$site_path_parts = explode('/', $site_path); | |
$clean_site_path_parts = array_slice($site_path_parts, -2, 2); | |
$clean_site_path = implode('/', $clean_site_path_parts); | |
if (!empty($clean_site_path)) { | |
$command_specific['dl']['destination'] = $clean_site_path . '/modules/contrib'; | |
} |
This file contains 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
.embedded-video .player { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
} | |
.embedded-video .player iframe, | |
.embedded-video .player object, |
This file contains 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 | |
## Aegir has major problems while migrating sites, when the new platform doesn't have the vendor libraries available. | |
## Here is a workaround for solving that problem. | |
## Copy the working site into the new platform. | |
## That needs to be done, to let composer_manager know about all the site package requirements | |
cp -r /var/aegir/platforms/old_platform/sites/site.name.org /var/aegir/platforms/new_platform/sites/site.name.org.migration | |
cd /var/aegir/platforms/new_platform | |
## Initialize composer_manager if not already done |
This file contains 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 | |
function theme_facetapi_tabs_inactive($variables) { | |
unset($variables['count']); | |
return theme_link($variables); | |
} | |
function theme_preprocess_facetapi_link_inactive(&$variables) { | |
// hide facet count | |
unset($variables['count']); |
OlderNewer