By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...
curl http://ipecho.net/plain; echo
Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...
See attached link. The gist is: .element { position: relative; top: 50%; transform: translateY(-50%); } Works in all web browsers and...
Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...
So you have placed a breakpoint somewhere and now want to dig around, but not even inspecting variables is working...
Open a MySQL root shell and use this command: PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 3 DAY) + INTERVAL 0...
Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...
When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...
Safari on iOS accepts an apple-touch-icon favicon that is used for stuff like desktop bookmarks. Always define a...
Skype has been updated to 4.3 on Linux. This fixes group chat issues with non-linux clients.
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
If you have some file or directory that should trigger a Spring reboot, tell Spring e.g. in config/spring.rb: Spring.watch 'file.rb...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
See screenshot here. This is great news because network throttling is very painful in Linux. The features are already in...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...
You need this awkward command: page.driver.browser.action.move_to(page.find(selector).native).perform Note that there are better ways for newer Capybaras...
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...