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
using System; | |
using System.Linq.Expressions; | |
using Moq.Language.Flow; | |
namespace Moq | |
{ | |
public static class MoqExtensions | |
{ | |
public static ISetup<T, TResult> SetupIgnoreArgs<T, TResult>(this Mock<T> mock, | |
Expression<Func<T, TResult>> expression) |
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 will automatically install the Sumo Logic collector on AWS Elastic | |
# Beanstalk instances. Add this to the .ebextensions folder in your app root | |
# To add or remove tracked files, simply add or remove source hashes to the | |
# sources array. | |
packages: | |
rpm: | |
SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64 | |
services: | |
sysvinit: |
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
provider.aws - *terraform.graphNodeResourceDestroy | |
aws_api_gateway_rest_api.Hello - *terraform.GraphNodeConfigResource | |
aws_api_gateway_rest_api.Hello (destroy tainted) - *terraform.graphNodeProvider | |
aws_api_gateway_rest_api.Hello (destroy) - *terraform.graphNodeResourceDestroy | |
provider.aws - *terraform.graphNodeResourceDestroy | |
aws_api_gateway_rest_api.Hello (destroy tainted) - *terraform.graphNodeResourceDestroy | |
aws_api_gateway_deployment.dev (destroy tainted) - *terraform.graphNodeProvider | |
aws_api_gateway_deployment.int (destroy tainted) - *terraform.graphNodeResourceDestroy | |
aws_api_gateway_integration.HelloGet (destroy tainted) - *terraform.graphNodeResourceDestroy | |
aws_api_gateway_integration.HelloOptions (destroy tainted) - *terraform.graphNodeResourceDestroy |
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
variable "function_hello" {} | |
resource "aws_api_gateway_rest_api" "Hello" { | |
name = "Hello World API" | |
description = "Terraform integration" | |
} | |
resource "aws_api_gateway_resource" "Hello" { | |
rest_api_id = "${aws_api_gateway_rest_api.Hello.id}" | |
parent_id = "${aws_api_gateway_rest_api.Hello.root_resource_id}" |
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
module.iam.output.lambda_function_role_id - *terraform.GraphNodeConfigResourceFlat | |
provider.aws - *terraform.graphNodeProvider | |
root - terraform.graphNodeRoot | |
module.iam.aws_iam_role.Fake_POS - *terraform.GraphNodeConfigResourceFlat | |
module.iam.aws_iam_role.gateway_invoke_lambda - *terraform.GraphNodeConfigOutputFlat | |
module.iam.aws_iam_role_policy.invoke_lambda - *terraform.GraphNodeConfigResourceFlat | |
module.iam.aws_iam_role_policy.oneClick_lambda_basic_execution_1454641427156 - *terraform.GraphNodeConfigOutputFlat | |
module.iam.output.api_gateway_role_arn - *terraform.GraphNodeConfigResourceFlat | |
module.iam.output.lambda_function_role_id - *terraform.GraphNodeConfigResourceFlat | |
var.apex_function_hello - *terraform.GraphNodeConfigVariable |
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
variable "function_hello" {} | |
resource "aws_api_gateway_rest_api" "Hello" { | |
name = "Hello World API" | |
description = "Terraform integration" | |
} | |
resource "aws_api_gateway_resource" "Hello" { | |
rest_api_id = "${aws_api_gateway_rest_api.Hello.id}" | |
parent_id = "${aws_api_gateway_rest_api.Hello.root_resource_id}" |
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
<PropertyGroup> | |
<CommandLine>$([System.Environment]::CommandLine.Trim().ToLower())</CommandLine> | |
<IsQuietVerbosity>False</IsQuietVerbosity> | |
<IsMinimalVerbosity>False</IsMinimalVerbosity> | |
<IsNormalVerbosity>True</IsNormalVerbosity> | |
<IsDetailedVerbosity>False</IsDetailedVerbosity> | |
<IsDiagnosticVerbosity>False</IsDiagnosticVerbosity> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(CommandLine.Contains("/v"))' == 'True'"> |
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
public class PollingService | |
{ | |
private Thread _workerThread; | |
private AutoResetEvent _finished; | |
private const int _timeout = 60*1000; | |
private readonly Queue<Work> _queue = new Queue<Work>(); | |
public void StartPolling() | |
{ |
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
private static int getStackTraceIndexForObject(final Object object) | |
{ | |
// Finds out the index of "this code" in the returned stack trace - funny but it differs in JDK 1.5 and 1.6 | |
int i = 0; | |
for (final StackTraceElement ste : Thread.currentThread().getStackTrace()) { | |
++i; | |
if (ste.getClassName().equals(object.getClass().getName())) { | |
break; | |
} | |
} |