HTTPIe, a command line HTTP client

Stumbled upon HTTPie, a command line HTTP client. It’s pretty awesome. Basically it’s Curl on steroids, as it has an easy interface and syntax highlighted output. Here’s an example of a simple GET request to the Bacon Ipsum JSON service: Of course you can do actual useful stuff as well, such as POST-ing, Authentication, Cookies, Custom Headers, etc. As the repo says, the main features are: Expressive and intuitive syntax Formatted and colorized terminal output Built-in JSON support Forms and file uploads HTTPS, proxies, and authentication Arbitrary request data Custom headers Persistent sessions Wget-like downloads Python 2.

A more colourful cat in your shell

I just wanted to quickly share a shell alias I have been using lately to get some more color in the terminal when you cat a file. Below is a screenshot of what an average terminal looks like when you just use $ cat somefile.js Sure, it does the job, and you probably are ok with it looking dull as hell. But what if you could make it look like this:

Customize the terminal

I love the terminal. Besides the fact it makes you look awesome while using it, it can also do about a gazillion different things. Most of them useful. One thing is for sure, while developing webapps I have it running all the time and spend a lot of time running commands and monitoring output. So why not make it look as pretty as it is awesome? In this short walkthrough I’ll explain how to customize the terminal to make it look like mine, but make sure you fiddle with the settings so it works best for you.

Getting used to Vim

So there we go. Writing this post in vim. Macvim to be exact. Trying not to touch the arrow keys, not use the h-j-k-l too extensively either, work with A and I a lot, and generally trying not to cock things up too much by hitting the wrong commands. So why do I willingly put myself through the torture of using the monster that is Vim? Well, just like a lot of developers out there, I’ve had a long time desire to be able to use Vim properly.

Installing PHPUnit manually for CakePHP 2.0

I was trying to get into Unit Testing a few months ago. It was a steep learning curve and eventually I gave myself a non-excuse and decided to wait for Cake 2.0 as that would have PHPUnit and it “wouldn’t make sense to learn SimpleTest” at that time. I intend to keep that promise and have been trying to get into Unit Testing for real this time. The first thing was also the most annoying so far: installing the (&#(&.

How to handle multiple domains with CakePHP

Lately, we’ve been working with multiple environments/servers for our websites to be able to have them approved by clients before going live. However, following set up can also work nicely when you develop your sites locally and don’t want to keep changing the configuration every time you upload it. Setting up the database config file So, what changes in your config? Not all that much. Let’s have a look at the default database.

Setting up CakePHP with MAMP Pro on Mac OSX

I’d like to use my first post to describe how I set up new projects in a simple way that works best for me. My setup is pretty straight-forward, really. I know some people who mess about with include-paths so they can run multiple apps on one cake-install, but since I work for various clients and even more various projects I like my project folders to be self-contained. Downloading CakePHP Easy enough.