Entries by

, ,

Migrating a WordPress database to a new host name

process steps: export the database updated the static entries of the hostname in the database import the database commands: mysqldump -u _USERNAME_ -p _DBNAME_ > _DBNAME_.sql cat _DBNAME_.sql | sed -e ‘s/_HOSTNAME_/_NEWHOSTNAME/g’ > _DBNAME_UPDATED.sql mysql -u _USERNAME_ -p _DBNAME_ < _DBNAME_UPDATED.sql options & variables: _USERNAME_ = the the database user name -p = will prompt for the password _DBNAME_ = […]

,

Updating git submodules

If you want to update git submodules, you will need to do this directly in your submodules directory # download the submodule git submodule add https://user@repourl/reponame.git submodule_dir/ # initialize the submodule git submodule init # update your submodule cd submodule_dir/ git checkout master # or git checkout mybranch git pull # commit the submodule update […]

,

Install Node.js and NPM on Ubuntu

Install Node.js from Git repository and NPM on  Ubuntu. Make sure you have the necessary software sudo apt-get update sudo apt-get install git-core curl build-essential openssl libssl-dev g++ Install Node.js git clone https://github.com/joyent/node.git cd node git tag (list released versions and select the version you want) git checkout v0.10.26 ./configure make sudo make install node -v […]

Linux command line to test mail() function

Linux command to test mail() function: echo “test email body.” | mail -s “test email subject” user@domain.com Instructions: replace “test email body” with the body copy of your test email replace “test email subject” with the subject line for your test email replace user@domain.com with the email address to send the test to optionally includ […]

Favorite Quotes

Albert Einstein Quotes: “The difference between stupidity and genius is that genius has its limits.” “The true sign of intelligence is not knowledge but imagination.” “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.” “I fear […]

Crater Lake Hazelnut Espresso Martini

My wife’s favorite martini 1/2 shot Godiva Chocolate Liqueur (or creme de cocoa) 1 shot Crater Lake Hazelnut Espresso 1 shot espresso 1 1/2 shot heavy cream Add Ice in shaker, mix well, and poor in Martini Glass. Garnish with 1 chocolate covered espresso bean

Jeffrey Morgenthaler’s Perfect Egg Nog

Egg Nog TUESDAY, NOVEMBER 10TH, 2009 Courtesy of:https://www.jeffreymorgenthaler.com/egg-nog In terms of cocktail history, Egg Nog is nothing more than a brandy or rum flip made with the addition of cream or milk. The 1862 Bar-Tender’s Guide by Jerry Thomas calls for a nog made up of a tablespoon of bar sugar, a tablespoon of water, a whole egg, cognac, rum and […]