makandra dev

If you want to stop getting notified about new messages in a Skype chat (but not leave it altogether), you...

When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...

In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...

commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...

Sometimes you want to use a vanilla Ruby method like a block. You can use Object#method to obtain a...

You can use this shell command: uniq -u input.txt output.txt

makandra dev

This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

mislav.uniqpath.com

Random list of useful git commands for advanced users. I found some of them useful.

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...

When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

If you get an error "Adress already in use" with autossh check with lsof or netstat if something already listen...

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

github.com

If you have different users for different servers, don't use set :user. Encode the username into the server definition...

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...

github.com

Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

webupd8.org

Great blog with daily news and HOWTOs for Ubuntu, Linux and Gnome.