makandra dev

If a SSH shell dies (from timeout for example), you cannot kill it with the usual CTRL-C or CTRL...

makandra dev

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

web.archive.org

With its you can switch the subject of an example to a method value of the current subject: describe Array...

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...

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

gem-session.com

If you want to exclude your staging site from Google using robots.txt without running the risk to forget deleting the...

makandra dev

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

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

makandra dev

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

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

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

makandra dev

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...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

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).

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:

Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...