Skip to content

Instantly share code, notes, and snippets.

Vladimir Strakhov rimidl

Block or report user

Report or block rimidl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 1.textile

Поставщик

контакты Контакт поставщика
краткое наименование *
полное наименование *
ИНН
ОГРН
КПП
ОКПО
телефон
@rimidl
rimidl / ruby_encoding_marker.rb
Created Jun 5, 2012
RubyEncodingMarker - скрипт, занимающийся вставкой информации о кодировке файла необходимой для корректной работы Ruby 1.9. Полезен при переходе со старой версии Ruby.
View ruby_encoding_marker.rb
# -*- encoding: utf-8 -*-
# file name: ruby_encoding_marker.rb
#
# @example Use in console:
# $ ruby ruby_encoding_marker.rb app/controllers
#
module RubyEncodingMarker
UTF8 = '# -*- encoding: utf-8 -*-'
@rimidl
rimidl / gist:2818363
Created May 28, 2012
nginx settings for ssl connection with rails app
View gist:2818363
$ cat /etc/nginx/sites-enabled/ssl.myapp.com
upstream evrmyapp_ssl {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
# for UNIX domain socket setups:
server unix:/tmp/myapp.socket fail_timeout=0;
}
You can’t perform that action at this time.