Create droplet of your liking (ubuntu 12.04 x32) Use an xx.04 LTS version
On Digital Ocean, create a DNS entry for your server (xyz.com)
Make sure it has NS records that use digital oceans nameservers
Create droplet of your liking (ubuntu 12.04 x32) Use an xx.04 LTS version
On Digital Ocean, create a DNS entry for your server (xyz.com)
Make sure it has NS records that use digital oceans nameservers
| pg_dump name_db > db3.sql | |
| scp root@ip:/home/fgos/code/db3.sql /home/phc/ | |
| ##### | |
| Пример 1: Копируем файл «file.txt» из удаленного сервера на локальный компьютер. | |
| $ scp user@remote.host:file.txt /some/local/directory | |
| Пример 2: Копируем файл «file.txt» с локального компьютера на удаленный сервер. | |
| $ scp file.txt user@remote.host:/some/remote/directory |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| function drawCircle(text, size, color) { | |
| var textSize = Math.ceil(size / 2.5); | |
| var font = 'Proxima Nova, proxima-nova, HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif'; | |
| var colors = ["#1abc9c", "#16a085", "#f1c40f", "#f39c12", "#2ecc71", "#27ae60", "#e67e22", "#d35400", "#3498db", "#2980b9", "#e74c3c", "#c0392b", "#9b59b6", "#8e44ad", "#bdc3c7", "#34495e", "#2c3e50", "#95a5a6", "#7f8c8d", "#ec87bf", "#d870ad", "#f69785", "#9ba37e", "#b49255", "#b49255", "#a94136"]; | |
| var colorIndex = Math.floor((text.charCodeAt(0) - 65) % colors.length); | |
| var finalColor = color || colors[colorIndex]; | |
| var template = [ | |
| '<svg height="' + size + '" width="' + size + '" style="background: ' + finalColor + '">', | |
| '<text text-anchor="middle" x="50%" y="50%" dy="0.35em" fill="white" font-size="' + textSize + '" font-family="' + font + '">' + text.toUpperCase() + '</text>', |
| require "net/http" | |
| def start_server | |
| # Remove the X to enable the parameters for tuning. | |
| # These are the default values as of Ruby 2.2.0. | |
| @child = spawn(<<-EOC.split.join(" ")) | |
| XRUBY_GC_HEAP_FREE_SLOTS=4096 | |
| XRUBY_GC_HEAP_INIT_SLOTS=10000 | |
| XRUBY_GC_HEAP_GROWTH_FACTOR=1.8 | |
| XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0 |
| //: # Swift 3: URLSessionDelegate | |
| //: The following example shows how to use `OperationQueue` to queue the network requests. This is useful in many ways (for delaying queued requests when the networking goes down for example) | |
| import Foundation | |
| import PlaygroundSupport | |
| class Requester:NSObject { | |
| let opQueue = OperationQueue() | |
| var response:URLResponse? |
| class AddActivatableFieldsToModel < ActiveRecord::Migration[5.0] | |
| def change | |
| add_column :users, :archived, default: false | |
| add_column :users, :test, default: false | |
| add_column :users, :dummy, default: false | |
| add_index :users, :archived | |
| end | |
| end |