Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...
When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
Our CI setup frequently sees this error while running yarn install: yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages...
Git allows you to set push options when pushing a branch to the remote. You can use this to build...
tl;dr Since Rails 7+ you can use ComparisonValidator for validations like greater_than, less_than, etc. on dates, numerics...
...an error out of stale_session_check! if it cannot find all classes. The best way to go: Don't do this. Strings and numbers should be enough and if...
Usually, Unpoly compiler destructors are returned from the compiler function. However, when using async compiler functions, you can not register...
On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
...to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore will be rendered on their own, which will fail if they are...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...
In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...