Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
1) Create a droplet on Digital Ocean | |
1.1 cloud.digitalocean.com/droplets/new; | |
1.2 In choose an image click on "One-click apps" and choose Dokku Image; | |
1.3 After choose the size, datacenter region, add your SSH Keys¹ and choose a hostname; | |
1.4 Create. | |
¹ - Find your SSH Keys in ~/.ssh/id_rsa.pub | |
2) SSH connection |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
[ | |
{ | |
"keys" : ["alt+shift+w"], | |
"command" : "insert_snippet", | |
"args": { | |
"contents": "<${1:p}>${0:$SELECTION}</${1}>" | |
} | |
}, | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": |
// Based on fantastic jQuery useragent parser plugin https://gist.github.com/373298 | |
function parse(uaStr) { | |
var agent = { | |
platform: {}, | |
browser: {}, | |
engine: {} | |
}; | |
var ua = uaStr, | |
p = agent.platform, |
_.extend Backbone.Validation.callbacks, | |
valid: (view, attr, selector) -> | |
control = view.$('[' + selector + '=' + attr + ']') | |
group = control.parents(".control-group") | |
group.removeClass("error") | |
if control.data("error-style") == "tooltip" | |
# CAUTION: calling tooltip("hide") on an uninitialized tooltip | |
# causes bootstraps tooltips to crash somehow... | |
control.tooltip "hide" if control.data("tooltip") |