Caio Bianchi

Web Developer

This Blog Lives

Hi there folks,

I’m trying to find time to keep this blog alive and post more interesting stuff, but it’s been pretty hard as some of you might know. I’ll keep you posted.


Happy 2014!

TIL: Create an HTTP Server Using Ruby

ruby -run -e httpd . -p 5000

Simple as that. “.” can be replaced by the path of the folder you want to serve up, and “5000” by the port you wish to use.

PS.: Python also has a similar feature built-in python -m SimpleHTTTPServer

Quick Tip: Installing Command Line Tools in OSX Mavericks

Apple seems to have realized that developers needed an easier way to get started.

On the latest version of the Mac OS X, non-iOS/Mac developers who would prefer not to download the mamooth that is XCode and install it just to have access to a newer version of GCC and other smaller packages, have the option to just install Command Line Tools.

In fact, this alternative has been available since Mac OS X Lion but it has never been so easy to install.

xcode-select --install

There. That’s all you need to do to install the latest Command Line Tools for Mac. It will prompt you to confirm if you want to proceed with the installation, click OK and you should be good to go.

If you use homebrew for package managing, you should notice that whenever you run a command such as brew install <package>, homebrew won’t complain about not having XCode installed anymore.