sudo aptitude install vim-nox
sudo vim /etc/ssh/sshd_config
module FbGraph | |
class Property | |
include Comparison | |
attr_accessor :name, :text, :href | |
def initialize(attriutes = {}) | |
# override for "can't convert Symbol into Integer" | |
end | |
end |
diff --git a/Guardfile b/Guardfile | |
index 90843a8..6ffae21 100644 | |
--- a/Guardfile | |
+++ b/Guardfile | |
@@ -1,7 +1,7 @@ | |
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
-guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do | |
+guard 'spork', :wait => 60, :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do |
fugos: | |
- | |
id: 1 | |
name: 'fugo' | |
- | |
id: 2 | |
name: 'fugofugo' |
def ancestors_should_include ancestors | |
describe 'ancestors' do | |
ancestors.each do |ancestor| | |
it {subject.class.ancestors.should be_include ancestor} | |
end | |
end | |
end |
--- a/app/controllers/confirmations_controller.rb | |
+++ b/app/controllers/confirmations_controller.rb | |
@@ -1,20 +1,19 @@ | |
class ConfirmationsController < Devise::ConfirmationsController | |
def show | |
@user = User.find_by_confirmation_token(params[:confirmation_token]) | |
- if [email protected]? | |
- render_with_scope :new | |
- end | |
+ head :not_found unless @user.present? |
namespace :hoge do | |
desc 'fugo' | |
task :fugo => :environment do | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
puts Benchmark::CAPTION | |
Benchmark.bm do |x| | |
x.report("all\n") { | |
} | |
end | |
end |
diff sample3.1/.gitignore sample3.2/.gitignore | |
1,5c1,15 | |
< .bundle | |
< db/*.sqlite3 | |
< log/*.log | |
< tmp/ | |
< .sass-cache/ | |
--- | |
> # See http://help.github.com/ignore-files/ for more about ignoring files. | |
> # |
require 'formula' | |
class Nginx < Formula | |
homepage 'http://nginx.org/' | |
url 'http://nginx.org/download/nginx-1.0.12.tar.gz' | |
md5 'd0ceefeb2a68ecb19e78ee894a5b52a3' | |
devel do | |
url 'http://nginx.org/download/nginx-1.1.14.tar.gz' | |
md5 '16d523e395778ef35b49a2fa6ad18af0' |
export LANG=ja_JP.UTF-8 | |
# homebrewを優先 | |
export PATH=~/bin:/usr/local/bin:$PATH | |
# rvm | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |