rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
In [1]: import boto | |
In [2]: c = boto.connect_s3() | |
In [3]: b = c.lookup('test-1245812163') | |
In [4]: mp = b.initiate_multipart_upload('testmpupload2') | |
In [5]: mp | |
Out[5]: <MultiPartUpload testmpupload2> |
#!/usr/bin/env python | |
"""Split large file into multiple pieces for upload to S3. | |
S3 only supports 5Gb files for uploading directly, so for larger CloudBioLinux | |
box images we need to use boto's multipart file support. | |
This parallelizes the task over available cores using multiprocessing. | |
Usage: | |
s3_multipart_upload.py <file_to_transfer> <bucket_name> [<s3_key_name>] |