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
| module.exports = { | |
| format: 'json', | |
| apiVersion: '2013-11-04', | |
| endpointPrefix: 'kinesis', | |
| jsonVersion: '1.1', | |
| serviceFullName: 'Amazon Kinesis', | |
| signatureVersion: 'v4', | |
| targetPrefix: 'Kinesis_20131104', | |
| timestampFormat: 'iso8601', | |
| operations: { |
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
| require(['base'],function(base){ | |
| if(someModrnizerOrOtherFeatureTest()) | |
| require(['someSpecificFeature'],function(foo){ | |
| //do something with foo when someModrnizerOrOtherFeatureTest is passed | |
| }); | |
| }); |
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
| var system = require('system'); | |
| var casper = require('casper').create(); | |
| if (system.args.length <= 4) { | |
| console.log('I need a URL!'); | |
| casper.run(); | |
| } else { | |
| var screens = [{w:1280,h:768},{w:800,h:600},{w:1600,h:1200},{w:1024,h:768},{w:480,h:320},{w:320,h:480},{w:1920,h:1080}]; | |
| var url = system.args[4]; |
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
| .border-radius (@radius) { | |
| -webkit-border-radius: @radius; | |
| -o-border-radius: @radius; | |
| -moz-border-radius: @radius; | |
| -ms-border-radius: @radius; | |
| border-radius: @radius; | |
| } | |
| .user-list { | |
| // need to use special `.` syntax |
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
| #!/bin/bash | |
| # nodejs - Startup script for node.js server | |
| # chkconfig: 35 85 15 | |
| # description: node is an event-based web server. | |
| # processname: node | |
| # server: /path/to/your/node/file.js | |
| # pidfile: /var/run/nodejs.pid | |
| # |
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
| #!/usr/bin/env ruby1.9.1 | |
| # | |
| # Testing multipart uploads into s3 | |
| # Very basic script for testing how the functionality works | |
| # | |
| # Takes a file, splits it up | |
| # For each part get the base64 encoded md5 of the part | |
| # Then run through the parts and upload them | |
| # Refs: |
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
| #!/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>] |
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
| 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> |
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
| #!/bin/bash | |
| # | |
| # tomcat7 This shell script takes care of starting and stopping Tomcat | |
| # | |
| # chkconfig: - 80 20 | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: tomcat7 | |
| # Required-Start: $network $syslog | |
| # Required-Stop: $network $syslog |