Working with Multiple SSH Keys

    Tags : 

If you have more than two accounts on GitHub, you have noticed that it will not let you use the same SSH key for different accounts. This is how you fix that.

  • Create a new key with a different name
  • Upload the new key to the service or server
  • Create an entry for the Host in .ssh/config
  • Update the .git/config file to use the identity in the .ssh/config file.

Read more…

Rename file extensions from the command line

The default file extension for a post or story in Nikola is .txt and this is also the designator that you are creating the content using Restructured Text.

That's fine except most text editors recognize the extension of the file and will present you with "options" based on that. With txt, there aren't really any helper tools.

Read more…

Check if php-curl is installed and running

Create a new file in the webroot directory and insert the following code:

<?php
  echo '<pre>';
  var_dump(curl_version());
  echo '</pre>';
?>

Drupal Cron problems and potential fix

If cron keeps getting hung up and/or timing out:

From: Solving cron problems

drush vdel cron_semaphore drush vdel cron_last

Is one idea. Also look at the rest of the post above for more information.

Drush - Multisite sub-site won't bootstrap

If the setup is using an alias in .bashrc, update the alias to this:

alias drush='php -c /home/<userid>/drush/drush.ini /home/<userid>/drush/drush.php --php="php -c /home/<userid>/drush/drush.ini"'

Update the information at <userid>.

Acquia DevCloud - Local development environment setup

Acquia Dev Cloud provides Drupal-optimized hosting with professional administration tools. It includes three environments for staged deployment and can be managed through multiple interfaces.

This will show you how to set up your local development environment to work with DevCloud.

Read more…