Skip to content

Instantly share code, notes, and snippets.

View shved270189's full-sized avatar

Ivan Bondarenko shved270189

  • Ukraine
View GitHub Profile
load 'deploy'
# Uncomment if you are using Rails' asset pipeline
load 'deploy/assets'
load 'config/deploy' # remove this line to skip loading any of the default tasks
—– BEGIN LICENSE —–
K-20
Single User License
EA7E-940129
3A099EC1C0B5C7C5 33EBF0CF BE82FE3B
require 'sequel'
DB ||= Sequel.connect ENV['DATABASE_URL']
class Resource < Sequel::Model
include Sequel.inflections
def after_save
db.notify channel
end

###Тестовое задание

#####1. Добавить к классу Array метод, который будет возвращать индекс элемента, при условии что массив может быть вложенным

a = [
  'hash',
  'array',
  [
    'map',
@shved270189
shved270189 / digital_ocean_setup.md
Created July 2, 2016 12:56 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password