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 bash | |
CREDS=$(aws sso get-role-credentials --profile $1 \ | |
--output json \ | |
--access-token $(jq -r ".accessToken" $(grep -l "accessToken" ~/.aws/sso/cache/*.json)) \ | |
--account-id $(aws configure get sso_account_id --profile $1) \ | |
--role-name $(aws configure get sso_role_name --profile $1) | | |
jq '.roleCredentials | { | |
Version: 1, | |
AccessKeyId: .accessKeyId, |
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
@Provider | |
public class SwaggerAsyncResponseFilter implements ContainerResponseFilter { | |
SwaggerSpecFilter removeAsyncFilter = new SwaggerSpecFilter() { | |
public boolean isOperationAllowed(Operation operation, ApiDescription api, Map<String, List<String>> params, Map<String, String> cookies, | |
Map<String, List<String>> headers) { | |
return true; | |
} |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"autoscaling:Describe*", | |
"cloudwatch:Describe*", | |
"cloudwatch:List*", | |
"cloudwatch:Get*", | |
"ec2:Describe*", |
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
/* To run this example: | |
* | |
* - Save this file as test.js | |
* - Run 'npm install azure' and 'npm install bluesky' | |
* - Set the variables 'myAccount' and 'myKey' to your Azure storage credentials | |
* - Set the 'containerName' and 'blobName' variables to an existing blob in Azure storage | |
* - Run as 'node test.js' | |
* | |
* The BlobReadStream source can be found here: | |
* https://github.com/pofallon/node-bluesky/blob/master/lib/blobReadStream.js |
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 should = require('should'); | |
describe('Simple Test', function() { | |
after(function(done) { | |
console.log('In After'); | |
done(); | |
}); | |
describe('specific test', function() { |
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
$ make test | |
Waf: Entering directory `/Users/paul/Downloads/node-v0.6.0/out' | |
DEST_OS: darwin | |
DEST_CPU: x64 | |
Parallel Jobs: 1 | |
Product type: program | |
Waf: Leaving directory `/Users/paul/Downloads/node-v0.6.0/out' | |
'build' finished successfully (0.040s) | |
-rwxr-xr-x 1 paul staff 6.7M Nov 5 12:21 out/Release/node | |
python tools/test.py --mode=release simple message |
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 express = require('express'); | |
var app = module.exports = express.createServer(); | |
app.configure(function(){ | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
app.use(app.router); | |
}); | |
app.param(':id', function(req, res, next, val) { |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net; | |
using System.Threading; | |
using Microsoft.WindowsAzure; | |
using Microsoft.WindowsAzure.Diagnostics; | |
using Microsoft.WindowsAzure.ServiceRuntime; | |
using Microsoft.WindowsAzure.StorageClient; |