Terminal
$ ssh root@000.000.000.000
$ openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
Start SSL
| Create SSL for Apache2 for Ubuntu 14.04 | |
| https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 | |
| Configure SSL for Django | |
| http://stackoverflow.com/questions/32812570/configure-ssl-certificate-on-apache-for-django-application-mod-wsgi |
| # Sources | |
| # johngibby.com/blog/How_to_deploy_your_meteor.js_app_on_Digital_Ocean | |
| # stackoverflow.com/questions/20117104/mongodb-root-user | |
| # digitalocean.com | |
| # Create a Digital Ocean Ubuntu 14.04 Droplet | |
| # You'll receive an email with your new IP and Password | |
| # e.g. | |
| # Droplet Name: dropletname | |
| # IP Address: 000.000.000.000 |
| /* | |
| * zClip :: jQuery ZeroClipboard v1.1.1 | |
| * http://steamdev.com/zclip | |
| * | |
| * Copyright 2011, SteamDev | |
| * Released under the MIT license. | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * | |
| * Date: Wed Jun 01, 2011 | |
| */ |
| [ | |
| { | |
| "assessments": [ | |
| "participation in online discussion groups (20%)", | |
| " assignment 1 (30%)", | |
| " assignment 2 - case study and analysis (50%) " | |
| ], | |
| "category": "Graduate Certificate of Health Science (Developmental Disability)", | |
| "classes": "Online ", | |
| "code": "GSDD5001", |
| require 'zip' | |
| def extract_images(file_path, destination = nil) | |
| destination = File.basename(file_path, '.*') unless destination | |
| file_path = File.join(Dir.pwd, file_path) | |
| Zip::File.open(file_path) do |zip_file| | |
| zip_file.each do |file| | |
| next unless file.name =~ /word\/media/ | |
| new_file = File.join(destination, File.basename(file.name)) |