Skip to content

Instantly share code, notes, and snippets.

View itsNikolay's full-sized avatar
📈
Better then yesterday

Nikolay Ponomarev itsNikolay

📈
Better then yesterday
View GitHub Profile
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: still could not bind()
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
Rendered services/index.html.haml within layouts/application (1.4ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms)
Started GET "/" for 83.139.137.225 at 2013-03-10 14:22:59 +0400
Processing by ServicesController#index as HTML
Rendered services/index.html.haml within layouts/application (0.8ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
Started GET "/" for 83.139.137.225 at 2013-03-10 14:22:59 +0400
Processing by ServicesController#index as HTML
Rendered services/index.html.haml within layouts/application (0.7ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms)
# coding: utf-8
require 'rvm/capistrano' # Для работы rvm
require "bundler/capistrano"
load 'deploy/assets'
server "198.211.125.210", :web, :app, :db, primary: true
set :application, "wood-awesome"
set :user, "user"
set :deploy_to, "/home/#{user}/projects/#{application}"
# coding: utf-8
worker_processes 2
listen "/tmp/wood-awesome.app.sock"
pid "/tmp/wood-awesome.app.pid"
stderr_path "log/wood-awesome.unicorn.log"
stdout_path "log/wood-awesome.unicorn.log"
worker_processes 1;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log;
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex off; # "on" if nginx worker_processes > 1
}
@itsNikolay
itsNikolay / howto.md
Last active December 13, 2015 16:59
Инструкция по созданию рисунков к макетам спецпроектам "Праздники".

##Создание макета для спецпроекта.

Каждый макет спецпроекта состоит из 4 рисунков (рисунок в шапке, рисунок под шапкой, рисунок в футере и рисунок для соц. сети.) и кода цвета для фона.

  1. Рисунок в шапке должен быть размером 1280х404 пиксилей (ширина х высота).
    Формат: jpg/jpeg/png
    Пример: http://ny.36on.ru/uploads/project/background_header/1/header-page-background.png

  2. Рисунок под шапкой должен быть размером 2560х1204 пиксилей (ширина х высота).
    Формат: jpg/jpeg/png

@itsNikolay
itsNikolay / gist:4307796
Created December 16, 2012 14:27
gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.9'
gem "spree", "~> 1.2.2"
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git'
gem 'russian'
gem "spree_address_book", :git => "git://github.com/romul/spree_address_book.git"
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git', :branch => '1-2-stable'
gem 'spree_editor', :git => 'git@github.com:itsNikolay/spree_editor.git'
Started PUT "/checkout/update/address" for 127.0.0.1 at 2012-12-16 15:51:24 +0400
Processing by Spree::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FiZb2TZaAXOUlqPpdEKXuWmpya7ushZavJ1VgQ3a3rk=", "order"=>{"bill_address_attributes"=>{"firstname"=>"Николай", "lastname"=>"Пономарев", "address1"=>"Ленина", "address2"=>"", "city"=>"Мурманск", "state_name"=>"Регионgfhdfh", "zipcode"=>"adsf", "country_id"=>"35", "phone"=>"adsf"}, "use_billing"=>"1"}, "button"=>"", "state"=>"address"}
Spree::Preference Exists (0.2ms) SELECT 1 AS one FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/allow_ssl_in_development_and_test' LIMIT 1
Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."name" = 'allow_ssl_in_development_and_test' LIMIT 1
Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = 1069267034 LIMIT 1
Spree::Adjustment Load (0.3ms) SE
@itsNikolay
itsNikolay / admin.js
Created December 12, 2012 08:50
фывафыва
// FIXME: Please fix this file, I don't like how it looks now at all.
// Request help from KODER if u don't know what to do.
$(document).ready(function() {
buttons_manipulation();
});
function buttons_manipulation() {
$(".accept-form-block").hide();
$(".decline-form-block").hide();
generate :scaffold, "admin/pages title slug:uniq:index description:text text:text published:boolean user:references"
gsub_file "db/migrate/*_create_admin_pages.rb", "t.boolean :published", "t.boolean :published, :default => false"