Skip to content

Instantly share code, notes, and snippets.

View gen1321's full-sized avatar
🏠
Working from home

Boris Beginin gen1321

🏠
Working from home
View GitHub Profile
@gen1321
gen1321 / users-export.rb
Created January 26, 2018 17:05 — forked from siraz-provectus/send file
users-export.rb
module Exports
class UserExcelExport < ApplicationExcelExport
BATCH_SIZE = 500
private
def default_headers
{
name: "Имя",
email: 'email',
@gen1321
gen1321 / simple-capistrano-docker-deploy.rb
Created April 9, 2016 21:38 — forked from johnbintz/simple-capistrano-docker-deploy.rb
Simple Capistrano deploy for a Docker-managed app
# be sure to comment out the require 'capistrano/deploy' line in your Capfile!
# config valid only for Capistrano 3.1
lock '3.2.1'
set :application, 'my-cool-application'
# the base docker repo reference
set :name, "johns-stuff/#{fetch(:application)}"