$blog++

Git extras

Feb/10/2014 3 min read by Marco Monteiro

I'm a heavy git user, hence I'm always trying to improve my workflow while using it. I normally have 3 ways of using git. I could use a gui client (sourcetree), normally I do this when I'm preparing a new release.

On my daily code day I would use git inside Sublime Text 2. That way I don't need to constantly change between my text editor of choice and a git gui or the terminal. However, from time to time, I use just the terminal. That happens for two reasons, one I could be using git remotely, or I could be doing something more difficult that couldn't be resolved inside sourcetree or Sublime Text.

Read more

Remove the admin bar on wordpress

Feb/07/2014 1 min read by Marco Monteiro

Yes, lately I've been doing some Wordpress stuff. Before you start throwing stones, I'm not doing the kind of stuff to be ashamed about. I'm actually building some blogs.

One thing that bothers me a lot is the admin bar on the front-end, always there, always present. Fucking up my css.

Read more

How to add another virtual host using Vagrant

Jan/09/2014 3 min read by Marco Monteiro

There's a lot of ways to use Vagrant. Some people create a virtual machine per project. I don't like that idea. I think it's best to create a virtual machine for each different server you have to deploy. So if I have 2 projects that are going to be deployed to the same server why should I create two virtual machines? Makes no sense to me. Those two projects belong in the same virtual machine.

Read more

How to connect to you database using Vagrant

Jan/05/2014 2 min read by Marco Monteiro

As you may or may not know, I started to really use vagrant lately. The installation process to get a PHP development environment is quite easy. However, there was a few moment were I run into a small issues. Most of them happened just because my mind was still programmed to work with a simple Lamp stack.

One of the issues that made me lose 20 minutes or so was connecting SequelPro to the database. Sure I installed PHPmyAdmin but I wanted to use my own database management app.

Read more

Getting started with vagrant

Jan/04/2014 4 min read by Marco Monteiro

Recently I wrote a post about my dev setup on mac. However someone has been recommending me for a while to start using Vagrant. But I never did. Specially because my dev setup was working fine.

A few days ago, I decided it was time to do a clean install on my mac, and start fresh. That means it's time for some experimenting.

Read more