Skip to content

Instantly share code, notes, and snippets.

View xeron's full-sized avatar

Ivan Larionov xeron

View GitHub Profile
@xeron
xeron / bitrix_authorization.rb
Created January 6, 2012 22:06 — forked from dapi/bitrix_authorization.rb
1С-Битрикс авторизация на рельсах (ruby on rails)
# Расширение контроллера
#
module Bitrix::Authorization
def current_user
@current_user ||= find_from_cookie
end
def login_user(user)
logout_user if current_user
@current_user = user
@xeron
xeron / haproxy.cnf
Created September 21, 2011 16:50 — forked from asabirov/haproxy.cnf
haproxy.cnf
global
log 127.0.0.1 local0
log 127.0.0.1 local0 notice
maxconn 4096
nbproc 1
pidfile /var/run/haproxy.pid
user haproxy
group haproxy