Category Archives: linux/unix world

How to push a particular branch to Heroku

This is just a shortcut to a command I found here: http://devcenter.heroku.com/articles/git This is my .git/config: 1234567891011121314151617[core]   repositoryformatversion = 0   filemode = true   bare = false   logallrefupdates = true   ignorecase = true [heroku]   account = personal [remote "heroku"]   url = git@heroku.personal:censo2010.git   fetch = +refs/heads/*:refs/remotes/heroku/* [remote "origin"]   [...]

Also posted in developer tools, programming, web programming | Tagged , , , , , , , , | Leave a comment

How to setup resque-web with nginx and unicorn

Recently some of my resque jobs stated failing. In order to get more visibility, I decided to use resque-web, the resque web interface.

Here is what I did.

Requirement: Have redis and the resque and unicorn gems installed.

Also posted in developer tools, programming, Ruby programming, web programming | Tagged , , , , , | Leave a comment

Ruby debugger cheat sheet (the switch from Aptana to TextMate)

I find TextMate more lightweight & faster than Aptana. It has its tradeoffs, but it’s worth it.

Anyway, this is just a cheat sheet for the things I’ve been doing.

Adding a breakpoint: Add “debugger” before the line you want to start debugging.
Stepping through a method: With `next`
Stepping into a method: With `step`
Continuing the execution to the next breakpoint: With `c` or `continue`
To launch an irb within the debugger: `irb`
To see the context (where you are, if you ever get lost debugging): `list`
To quit your debugging session: `quit`

Also posted in developer tools, open source, programming, Ruby programming, web programming | Tagged , , , , , , , | Leave a comment