#Unix Tips & Tricks
Install imagemagick package
sudo apt-get install imagemagick php5-imagick
Exporting Path (Mac OSX)
a. In your ~/.bash_profile
add the path ~/.composer/vendor/bin
like following
export PATH=blahblahblah:~/.composer/vendor/bin:$PATH
b. Then reload
source ~/.bash_profile
c. Check if its added correctly
echo $PATH
Note: If You are using zsh
then add paths to ~/.zshrc
may be and then source ~/.zshrc
Copy rsa key content to clipboard
pbcopy < ~/.ssh/id_rsa.pub
Copy full directory with all
cp -a /source/. /dest/
Install and activate Mcrypt Extension
sudo updatedb
locate mcrypt.ini
locate mcrypt.so
Edit mcrypt.ini and change extension to match the path to mcrypt.so, example
extension=/usr/lib/php5/20121212/mcrypt.so
php5enmod mcrypt
Verify that new files exists here (they should be auto created from the issue above)
ls -al /etc/php5/cli/conf.d/20-mcrypt.ini
ls -al /etc/php5/apache2/conf.d/20-mcrypt.ini
Otherwise do the following
Create symbol links now
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
Restart Apacahe
service apache2 restart