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

Overwrite file if content is different

Tag(s):

# Copy file to destination directory.
#  If file already existed and have different content, then overwrite it.
function F_OVERWRITE_IF_DIFF()
{

SPDR S&P 500 ETF (SPY)

Tag(s):

http://money.cnn.com/2015/03/12/investing/investing-active-versus-passive-funds/

One such ETF, the SPDR S&P 500 ETF (SPY), recently became the second-most popular fund on the planet, leapfrogging nearly every single mutual fund. It's outperformed 80% of active mutual funds over the past five years, according to State Street, which runs the fund.

http://money.cnn.com/2015/02/09/investing/spy-sp-500-etf-investing-popular/?iid=EL

Steak doneness

Tag(s):

Pages

Subscribe to OpenWritings.net RSS