Starting the Rails Console in Production Mode
To specify which mode you'd like the rails console to boot up in, just provide the string without any flags.
If you're on windows, remember the backslash "\" rather than for...
Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository
If you are having permission problems using git, such as
error: insufficient permission for adding an object to repository database ./objects
There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis....
How Many Gigs of RAM Are On My Server?
How much memory is on my linux server? Run the free command
total used free shared buffers cached
Mem: 2 1 0 0 0 1
-/+ buffers/cache: 0 1
Uploading Files with Curl
curl -i -F name=test -F email@example.com http://example.org/upload
Courtesy of http://ariejan.net/2010/06/07/uploading-files-with-curl/
Placing an Authenticity Token in a Rails Form
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>