Categories
Tips & Tricks

Install Ruby Gem in Mac OSX

Whenever Apple releases its new OSX, most of the software that was previously installed were gone such as Git or Ruby Gem that is needed to run Compass for front-end development. To fix it, simply re-install the Ruby Gem by running the following command:

\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled

Categories
Tips & Tricks

Using SCP in Mac

There are times when we need to upload files via command line. Luckily, Mac offers an SCP software built-in unlike Windows that you’ll need to install WinSCP.

To do so, open a terminal and run the following commands:

scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop

Then we’ll just need to type the password of that username over SSH.

For example, scp root@97.42.3.124:/MyFiles /home/web/site-name/public_html/files