When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

github.com

jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...

Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...

kernel.org

Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.

linux.die.net

If you need to find out which of your local commits are not on the remote server do this:

kernel.org

The ‘merge.*.driver` variable’s value is used to construct a command to run to merge ancestor’s version, current...

makandra dev

Every time you amend, rebase or reset, git commits get "overwritten". However, git still allows you to checkout those commits...

makandra dev

If you modified git's history and the change was already pushed, you will usually get a ! [rejected] my-branch...

To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend

makandra dev

Lets say you need to make a change to a commit OLD_COMMIT, but this is not the most recent...

makandra dev

In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...

To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...

Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...

github.com

Added utility methods for the Prototype Javascript framework.

github.com

Fixes all Flash elements on a page so that they heed DOM stacking order

makandra dev

This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...

For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...

makandra dev

If you need to revert only parts of one or several commits the following workflow can help:

git diff commit_hash -- path/to/file Provide any commit hashes or branch names like "master" for commit_hash.

You will need to upgrade to RSpec >= 2 and rspec-rails >= 2 for Rails 3. Here are some hints to...

I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...

github.com

Hooks lets you define hooks declaratively in your ruby class. You can add callbacks to your hook, which will be...

github.com

Ruby gem that provides an AR-style interface for the Pivotal Tracker API.

makandra dev

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11