This file contains 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
Installing NVIDIA Drivers on Linux for AWS: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-nvidia-driver.html#preinstalled-nvidia-driver | |
NVIDIA Driver Installation Quick Start: https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html |
This file contains 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
/** | |
* My super fake rabbit client wrapper | |
*/ | |
public class MySuperFakeRabbitClientWrapper { | |
private static Logger logger = LoggerFactory.getLogger(MySuperFakeRabbitClientWrapper.class); | |
private static ActualRabbitClient actualRabbitClient; | |
private MySuperFakeRabbitClientWrapper() { | |
// Pseudotastic |
This file contains 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
/** | |
* The following is an example of creating encryption keys using AWS KMS. | |
*/ | |
var Q = require('q'); | |
var AWS = require('aws-sdk'); | |
var kms = new AWS.KMS({region: 'us-east-1'}); | |
/** | |
* Example of create a "data" key with AWS KMS. Data keys are just encryption keys |
This file contains 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
{ | |
"name": "mediasilo-proxy", | |
"dependencies": { | |
"body-parser": "^1.13.3", | |
"express": "^4.13.4" | |
} | |
} |
This file contains 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
{ | |
"title": "My New QuickLink", | |
"description": "Assets for Review", | |
"assetIds": ["1111-1111-1111-1111-1111111"], | |
"configuration": { | |
"settings": [{ | |
"key": "allow_download", | |
"value": "false" | |
}, { | |
"key": "show_metadata", |
This file contains 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
// Existing implementation | |
else { | |
getUploadTicket(file).then(uploadFile).then(function(uploadFileResult) { | |
return createAsset(uploadFileResult.uploadTicket.assetUrl).then(function(r) { | |
console.log('Created asset', uploadFileResult); | |
}); | |
}).fail(function(e) { | |
console.log(e, e.stack); | |
}); |
This file contains 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
/************************************ | |
* | |
* This part of the example is the HTTP | |
* client responsible for making the request | |
* | |
*************************************/ | |
<?php | |
class WebClient { |