Skip to content

Instantly share code, notes, and snippets.

View rusllonrails's full-sized avatar
💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️

rusllonrails rusllonrails

💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️
  • Tbilisi, Georgia
View GitHub Profile
@rusllonrails
rusllonrails / rails 3.2 + devise + omniauth + vk
Created July 10, 2012 08:48
rails 3.2 + devise + omniauth + vk
http://www.pvsm.ru/ruby-on-rails/5538
@rusllonrails
rusllonrails / Postgres setup
Created July 16, 2012 07:18
Postgres setup
http://whatcodecraves.com/articles/2008/02/05/setup-rails-with-postgresql
http://proft.me/2010/05/6/ustanovka-postgresql-pod-ubuntu-centos/
https://help.ubuntu.com/8.04/serverguide/postgresql.html
@rusllonrails
rusllonrails / SSH troubles on ubuntu
Created July 16, 2012 09:45
SSH troubles on ubuntu
sudo gedit /etc/ssh/ssh_config
After creating a config file (~/.ssh/config) it worked. This is what I had to put in it:
Host github.com
User git
Port 22
Hostname github.com
IdentityFile ~/.ssh/id_rsa
TCPKeepAlive yes
@rusllonrails
rusllonrails / Troubles with heroku accounts
Created July 16, 2012 15:53
Troubles with heroku accounts
https://github.com/ddollar/heroku-accounts
@rusllonrails
rusllonrails / UBUNTU MAC THEME
Created August 3, 2012 08:11
UBUNTU MAC THEME
http://www.noobslab.com/2012/06/mac-os-x-lion-theme-for-ubuntu.html
@rusllonrails
rusllonrails / Ubuntu rmagick install
Created August 27, 2012 16:04
Ubuntu rmagick install
sudo apt-get install imagemagick libmagickcore-dev
sudo apt-get install libmagickwand-dev
gem install rmagick
@rusllonrails
rusllonrails / gist:3490177
Created August 27, 2012 16:36
Fix Could not open library 'libcurl' on ubuntu
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
@rusllonrails
rusllonrails / Generate Google API key
Created October 1, 2012 08:53
Generate Google API key
http://www.w3resource.com/API/google-plus/tutorial.php
@rusllonrails
rusllonrails / HOW TO BECAME a ROR DEVELOPER
Created October 10, 2012 07:42
HOW TO BECAME a ROR DEVELOPER
WEB FUNDAMENTS (САМЫЙ ОСНОВЫ) - HTML & CSS
http://www.codecademy.com/tracks/web
HTML
http://htmlbook.ru/samhtml
CSS
@rusllonrails
rusllonrails / application_controller.rb
Created October 14, 2012 15:44 — forked from gonzedge/application_controller.rb
Rails 3.1 - Adding custom 404 and 500 error pages
class ApplicationController < ActionController::Base
# ...
unless Rails.application.config.consider_all_requests_local
rescue_from Exception, with: lambda { |exception| render_error 500, exception }
rescue_from ActionController::RoutingError, ActionController::UnknownController, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_error 404, exception }
end
private
def render_error(status, exception)