This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "example" | |
set :repository, "[email protected]:kirs/example.git" | |
set :scm, :git | |
set :domain, "[email protected]" | |
set :use_sudo, false | |
set :deploy_to, "/var/www/#{application}" | |
set :keep_releases, 3 | |
set :normalize_asset_timestamps, false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class AvatarUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
# Choose what kind of storage to use for this uploader: | |
storage :file | |
# Override the directory where uploaded files will be stored. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable | |
attr_accessible :email, :password, :password_confirmation, :remember_me, :name | |
validates :name, :presence => true, :uniqueness => true | |
inboxes | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.11 | |
- RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0] | |
- INSTALLATION DIRECTORY: /Users/Kir/.rvm/gems/ruby-1.8.7-p352@newrussia | |
- RUBY EXECUTABLE: /Users/Kir/.rvm/rubies/ruby-1.8.7-p352/bin/ruby | |
- EXECUTABLE DIRECTORY: /Users/Kir/.rvm/gems/ruby-1.8.7-p352@newrussia/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86-darwin-11 | |
- GEM PATHS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install fog -v '>= 0.11.0' | |
Successfully installed fog-1.0.0 | |
1 gem installed | |
$ backup perform --trigger general_backup | |
[2011/11/08 15:40:36][error] Dependency missing. | |
Dependency required for: | |
Amazon S3, Rackspace Cloud Files (S3, CloudFiles Storages) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating rubygems-update | |
Fetching: rubygems-update-1.8.11.gem (100%) | |
Successfully installed rubygems-update-1.8.11 | |
Installing RubyGems 1.8.11 | |
RubyGems 1.8.11 installed | |
== 1.8.11 / 2011-10-03 | |
* Bug fix: | |
* Deprecate was moved to Gem::Deprecate to stop polluting the top-level |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Русский перевод для https://github.com/plataformatec/devise/tree/v1.4.2 | |
# Другие переводы на https://github.com/plataformatec/devise/wiki/I18n | |
ru: | |
errors: | |
messages: | |
expired: "устарела. Пожалуйста, запросите новую" | |
not_found: "не найдена" | |
already_confirmed: "уже подтверждена. Пожалуйста, попробуйте войти в систему" | |
not_locked: "не заблокирована" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#new_user').submit (e) -> | |
e.preventDefault() | |
data = $(e.target).serializeArray() | |
$.ajax | |
type: "POST" | |
data: data | |
dataType: "json" | |
url: $(e.target).attr('action') | |
success: (res) -> | |
window.location += "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd"> | |
<tsung loglevel="info"> | |
<clients> | |
<client host="localhost" use_controller_vm="true" maxusers="7000"/> | |
</clients> | |
<servers> | |
<server host="depst.ru" port="80" type="tcp"></server> | |
</servers> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ = jQuery | |
$.fn.extend | |
charty: (options) -> | |
settings = | |
dataField: 'hours' | |
color: '#000' | |
margin: 2 | |
settings = $.extend settings, options |