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')

Print numbers with color: Negative is red and positive is green

#!/bin/bash
set -e
# Description: Print numbers with color: Negative is red and positive is green.
 

Examples of printf usage

Tag(s):

#!/bin/bash
set -e
# Description: Examples of printf usage.
# Reference: http://wiki.bash-hackers.org/commands/builtin/printf
 
# INTEGER

Pages

Subscribe to OpenWritings.net RSS