This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).on('page:update', function(){ | |
| $('#s3-uploader').fileupload(); | |
| $('#s3-uploader').fileupload( | |
| 'option', | |
| { | |
| // Send the request via PUT, rather than POST | |
| type: 'put', | |
| done: function (e, data) { | |
| $(function () { | |
| $.each(data.files, function (index, file) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= s3_uploader_form id: "s3-uploader" do %> | |
| <%= file_field_tag :file %> | |
| <% end %> | |
| # ... | |
| <%= javascript_include_tag "nitro_component_transition/documents/s3_uploader" %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Here's the output of curl and iperf while downloading a 1gb file with curl: | |
| 10:07 $ curl https://cloud.powerhrg.com/index.php/s/luCM9upcpmZFEtq/download > ~/Desktop/large_file.ppt | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 953M 100 953M 0 0 9005k 0 0:01:48 0:01:48 --:--:-- 8115k | |
| ###################################################################################### | |
| iperf -c 10.1.1.128 | |
| ------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10:23 $ curl -vvvv https://cloud.powerhrg.com/index.php/s/N8tDpN6pKfzp49C/download -o ~/Desktop/medium_file.img | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.1.12.55... | |
| * TCP_NODELAY set | |
| * Connected to cloud.powerhrg.com (10.1.12.55) port 443 (#0) | |
| * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | |
| * Server certificate: *.powerhrg.com | |
| * Server certificate: DigiCert SHA2 Secure Server CA | |
| * Server certificate: DigiCert Global Root CA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -vvvv https://cloud.powerhrg.com/index.php/s/bTNX01etSgNJgfI/download -o ~/Desktop/large_file.jpg | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.1.12.55... | |
| * TCP_NODELAY set | |
| * Connected to cloud.powerhrg.com (10.1.12.55) port 443 (#0) | |
| * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | |
| * Server certificate: *.powerhrg.com | |
| * Server certificate: DigiCert SHA2 Secure Server CA | |
| * Server certificate: DigiCert Global Root CA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 14:47 $ curl -vvvv https://cloud.powerhrg.com/index.php/s/N8tDpN6pKfzp49C/download -o ~/Desktop/medium_file.img | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 10.1.12.55... | |
| * TCP_NODELAY set | |
| * Connected to cloud.powerhrg.com (10.1.12.55) port 443 (#0) | |
| * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | |
| * Server certificate: *.powerhrg.com | |
| * Server certificate: DigiCert SHA2 Secure Server CA | |
| * Server certificate: DigiCert Global Root CA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| => #<DocumentAnalytic:0x007ff0fdbcee90 | |
| id: 135238813, | |
| packet_id: "1880BF7B-8030-46F5-A741-2DEC4DC84C4C", | |
| document_id: 210, | |
| version: 37, | |
| user_id: 40288, | |
| emulated_user_email: nil, | |
| event_type: "page_view_time", | |
| page: 3, | |
| value: 330.139, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00:00 disk_check:check_disk_space | |
| Checking disk space on demo21-nitro-cron.mydatainmotion.com | |
| Checking disk space on demo21-nitro-task.mydatainmotion.com | |
| Checking disk space on demo21-nitro-webserver.mydatainmotion.com | |
| 00:01 git:wrapper | |
| 01 mkdir -p /tmp | |
| ✔ 01 dimadmin@demo21-nitro-cron.mydatainmotion.com 0.062s | |
| ✔ 01 dimadmin@demo21-nitro-task.mydatainmotion.com 0.068s | |
| ✔ 01 dimadmin@demo21-nitro-webserver.mydatainmotion.com 0.074s | |
| Uploading /tmp/git-ssh-nitro-demo21-greg.sh 100.0% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TABLES_AND_COLUMNS_FOR_S3_IMPORT = [ | |
| { table_name: 'documents', | |
| column_names: [:thumbnail] | |
| }, | |
| { | |
| table_name: 'document_versions', | |
| column_names: [:attachment] | |
| }, | |
| { | |
| table_name: 'document_version_pages', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Run 'do-release-upgrade' to upgrade to it. | |
| Last login: Tue Oct 10 16:49:41 2017 from 172.17.7.43 | |
| dimadmin@demo10-nitro-webserver:~$ cdn | |
| dimadmin@demo10-nitro-webserver:/data/apps/ror/pws/current$ bundle exec rails c demo10 | |
| Loading demo10 environment (Rails 4.2.9) | |
| irb(main):001:0> Rails.env | |
| => "demo10" | |
| irb(main):002:0> User.count | |
| => 18800 |