youtube.com

power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...

When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...

If you need to find all files inside a directory that were modified in the last 24 hours you can...

First of all: You could just use RVM which would make the pain go away. If for some reason you...

sudo apt-get install i8kutils Reboot You can now run the i8k tools such as i8kmon Setting the fan speed...

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

def task_with_hoptoad_notification(options) task(options) do begin yield rescue Exception => e Airbrake.notify(e) raise e

makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

You may omit the /path/to/link_name to have a link with the same filename appear in the current directory

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

ubuntuforums.org

Keyboard layout reverting to US on (every) reboot Cause: I found the same problem, but only on my wife...

To pause and send a task to the background ctrl+z to reactivate the task fg to run task in...

So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...

This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...

Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).

Screen is great for long running tasks, where you want to log in every few hours and days and keep...

In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

makandra dev

From the shell: ls -l | wc -l

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts: