Update submodule

Tag(s):

  1. On Git perspective, right-click on your submodule and then select Switch To master.
  2. Fetch from Upstream.
  3. Then, Rebase.

Rsync from an input list of files

Tag(s):

# list-of-files.txt: List of files with relative path to $SOURCE path
rsync --files-from=list-of-files.txt $SOURCE $DESTINATION

Can't install rest module due to always_populate_raw_post_data not set to -1

Tag(s):

CLI PHP often has a different php.ini than the web server. This config must differ between the two php instances. You can find out which php.ini is being used by drush by running drush status

https://github.com/drush-ops/drush/issues/1984

List php.ini locations

Tag(s):

php --ini

Export Excel file to CSV using PHPExcel library

Tag(s):

<?php
/**
  Description: Export Excel file to CSV using PHPExcel library.
 
  References:
        http://stackoverflow.com/questions/3895819/csv-export-import-with-phpexcel
        http://stackoverflow.com/questions/9695695/how-to-use-phpexcel-to-read-data-and-insert-into-database
        http://stackoverflow.com/questions/6346314/phpexcel-will-not-export-to-csv
 **/
 

Install and set default theme

Tag(s):

drush -r "${DRUPAL_DIR}" -y pm-enable "${THEME_NAME}"

Join 2 files, columns wise

Tag(s):

paste <(cal $(date -d '2 month ago' +'%m %Y')

Pages

Subscribe to OpenWritings.net RSS