Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
#place this in config/locales/translit.rb | |
# encoding: utf-8 | |
# I18n transliteration delegates to Russian::Transliteration (we're unable | |
# to use common I18n transliteration tables with Russian) | |
# | |
# Правило транслитерации для I18n использует Russian::Transliteration | |
# (использовать обычный механизм и таблицу транслитерации I18n с | |
# русским языком не получится) |
App.AccountEditRoute = Ember.Route.extend({ | |
setupController: function(controller) { | |
controller.set('content', this.get('currentUser')); | |
} | |
}); |
#!/usr/bin/env rake | |
require 'rspec/core/rake_task' | |
RSpec::Core::RakeTask.new(:spec => :dummy_app) do |t| | |
t.pattern = File.expand_path('../spec/**/*_spec.rb', __FILE__) | |
end | |
task :default => :spec | |
desc 'Generates a dummy app for testing' | |
task :dummy_app => [:setup, :migrate] |
# * Style guide based on Rails documention | |
module Namespace #:nodoc: don't document this | |
# Generic Namespace exception class | |
class NamespaceError < StandardError | |
end | |
# Raised when... | |
class SpecificError < NamespaceError | |
end |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
function unfold(arr) { | |
var result = []; | |
arr.forEach(function(elem, i) { | |
if ( elem instanceof Array) { | |
intermediate = unfold(elem); | |
result = result.concat(intermediate) | |
return | |
} | |
result.push(elem); | |
}) |