Skip to content

Instantly share code, notes, and snippets.

🏠
My finger is on the button

Vitaliy Esaulenko Vetal4eg

🏠
My finger is on the button
Block or report user

Report or block Vetal4eg

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
@Vetal4eg
Vetal4eg / devise.ru.yml
Created Jun 18, 2017
Russian I18n locale for devise.
View devise.ru.yml
# Русский перевод для https://github.com/plataformatec/devise/tree/v4.3.0
# Другие переводы на http://github.com/plataformatec/devise/wiki/I18n
ru:
devise:
confirmations:
confirmed: "Ваша учётная запись подтверждена."
send_instructions: "В течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи."
send_paranoid_instructions: "Если ваш электронный адрес есть в нашей базе данных, то в течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи."
failure:
View june_cms_template
git :init
run "echo 'TODO add readme content' > README"
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run "cp config/database.yml config/example_database.yml"
file ".gitignore", <<-END
log/*.log
tmp/**/*
config/database.yml
View nginx.conf
user app;
worker_processes 2;
error_log /home/app/logs/nginx.error.log info;
events {
worker_connections 1024;
}
View client.rb
STDOUT.sync = true
require 'queue'
start_time = Time.now.to_i
msg = 0
queue = Queue.new("testing")
queue.subscribe do |obj|
msg += 1
View gist:366173
require 'net/http'
require "rexml/document"
include REXML # so that we don't have to prefix everything with REXML::...
API_KEY, PASSWORD = "your_api_key", "your_password"
doc = Document.new
doc << XMLDecl.new('1.0', 'UTF-8')
root = doc.add_element 'product'
View nginx
#!/bin/sh
#
# nginx – this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid
You can’t perform that action at this time.