Skip to content

Instantly share code, notes, and snippets.

View Bregor's full-sized avatar

Maxim Filatov Bregor

View GitHub Profile
bregor@esgaroth ~ $ rake --version
WARNING: compile error
/opt/local/lib/ruby/gems/1.8/specifications/english-0.3.0.gemspec:28: syntax error, unexpected '=', expecting ')'
s.add_runtime_dependency(%q<facets >=2.0.0
^
/opt/local/lib/ruby/gems/1.8/specifications/english-0.3.0.gemspec:28: no .<digit> floating literal anymore; put 0 before dot
s.add_runtime_dependency(%q<facets >=2.0.0
^
/opt/local/lib/ruby/gems/1.8/specifications/english-0.3.0.gemspec:29: syntax error, unexpected ')', expecting kEND
/opt/local/lib/ruby/gems/1.8/specifications/english-0.3.0.gemspec:32: syntax error, unexpected '=', expecting ')'
Rendering /var/www/balticbridge.ru/releases/20081129153651/public/500.html (500 Error)
rendering section "request"
rendering section "session"
rendering section "environment"
rendering section "backtrace"
Sent mail to me@bregor.pp.ru, pipopolam@gmail.com, inadsence@gmail.com, maxim.filatov@edit.de, denis.lifanov@edit.de
/!\ FAILSAFE /!\ Sat Nov 29 23:14:32 +0300 2008
Status: 500 Internal Server Error
FATAL: role "root" does not exist
def read_many(query)
puts query.inspect
DataMapper::Collection.new(query) do |set|
read(query, set, true)
end
end
def read(query, set, arr = true)
file = './config/dhcpd.conf'
repository_name = query.repository.name
Master:
named.conf:
zone "einari.org.ru" IN {
type master;
file "pri/einari.zone";
allow-update { none; };
};
einari.zone:
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'net-ssh'
NoMethodError: undefined method `join' for nil:NilClass
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:96:in `lib_dirs_for'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:26:in `initialize'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `each'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `initialize'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:684:in `new'
$ tar xvzf rubygems-1.3.1.tar.gz
$ cd rubygems-1.3.1/
$ sudo ruby setup.rb
./lib/rubygems/gem_path_searcher.rb:96:in `lib_dirs_for': undefined method `join' for nil:NilClass (NoMethodError)
from ./lib/rubygems/gem_path_searcher.rb:26:in `initialize'
from ./lib/rubygems/gem_path_searcher.rb:25:in `each'
from ./lib/rubygems/gem_path_searcher.rb:25:in `initialize'
from ./lib/rubygems.rb:684:in `new'
from ./lib/rubygems.rb:684:in `searcher'
from ./lib/rubygems.rb:683:in `synchronize'
From da102e791a7271db92d7931fb5f0274373504617 Mon Sep 17 00:00:00 2001
From: Maxim Filatov <pipopolam@gmail.com>
Date: Mon, 18 May 2009 10:50:03 +0400
Subject: [PATCH] Error in Add currency_code option to PaypalGateway
---
...7_add_currency_code_option_to_paypal_gateway.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb b/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb
def time_block(&block)
raise "No block given" unless block_given?
start_time = Time.now
Thread.new { yield }
Time.now - start_time
end
def repeat_every(seconds, &block)
raise "No block given" unless block_given?
begin
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
We couldn’t find that file to show.