Skip to content

Instantly share code, notes, and snippets.

View stefansedich's full-sized avatar

Stefan Sedich stefansedich

  • Sage AI
  • San Francisco, California
View GitHub Profile
[TestFixture]
public class ResetScenario
{
private Stopwatch _stopwatch;
public void GivenX(int a)
{
}
void Main()
{
dynamic foo = 1000000000000000;
// DOES NOT WORK
var x = Convert.ToInt64(foo);
// WORKS!!!
//long x = Convert.ToInt64(foo);
Stacktrace:
Native stacktrace:
mono() [0x4a4ecf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7f4bab263d10]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f4baaca7267]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f4baaca8eca]
mono() [0x63bbdf]
Akka.Tests.Configuration.ConfigurationSpec.DeserializesHoconConfigurationFromNetConfigFile [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actor_should_be_able_to_resume_suspend [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actor_should_be_able_to_ReceiveTimeout_after_async_operation [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_use_ContinueWith [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_supervise_exception_ContinueWith [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_block_ask_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_async_await_in_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_suspend_reentrancy [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.UntypedActors_should_be_able_to_async_await_ask_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_async_await_ask_message_loop [FAIL]
=== TEST EXECUTION SUMMARY ===
Akka.Cluster.Tests Total: 126, Errors: 0, Failed: 4, Skipped: 0, Time: 73.532s
Akka.DI.AutoFac.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.639s
Akka.DI.CastleWindsor.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.422s
Akka.DI.Ninject.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.319s
Akka.DI.StructureMap.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.398s
Akka.DI.Unity.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.308s
Akka.FSharp.Tests Total: 26, Errors: 0, Failed: 2, Skipped: 0, Time: 3.901s
Akka.MultiNodeTestRunner.Shared.Tests Total: 21, Errors: 0, Failed: 0, Skipped: 0, Time: 5.336s
Akka.Persistence.Sqlite.Tests Total: 28, Errors: 0, Failed: 28, Skipped: 0, Time: 19.160s
=== TEST EXECUTION SUMMARY ===
Akka.Cluster.Sharding.Tests Total: 82, Errors: 0, Failed: 0, Skipped: 79, Time: 0.566s
Akka.Cluster.Tests Total: 126, Errors: 0, Failed: 4, Skipped: 0, Time: 75.235s
Akka.Cluster.Tools.Tests Total: 19, Errors: 0, Failed: 0, Skipped: 19, Time: 0.090s
Akka.DI.AutoFac.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.671s
Akka.DI.CastleWindsor.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.886s
Akka.DI.Ninject.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.787s
Akka.DI.StructureMap.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.840s
Akka.DI.Unity.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.731s
Akka.FSharp.Tests Total: 25, Errors: 0, Failed: 0, Skipped: 0, Time: 1.549s
@stefansedich
stefansedich / cleanup.sh
Created June 7, 2016 21:39
Cleaning up the untagged codeship cache images
#!/bin/bash
set -e
# Environment
REPOSITORY=$1
# Remove untagged images from the specified repository.
aws ecr list-images --repository-name $REPOSITORY --query 'imageIds[?type(imageTag)!=`string`].[imageDigest]' --output text \
| while read line; do aws ecr batch-delete-image --repository-name $REPOSITORY --image-ids imageDigest=$line; done
@stefansedich
stefansedich / gist:bd0a4fc69b33a64e8a9a5a59d2e65306
Created November 16, 2016 20:23
Running Datadog agent on startup with ECS
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
MIME-Version: 1.0
Content-Type: text/x-shellscript; charset="us-ascii"
Content-Disposition: attachment; filename="startup.sh"
#!/bin/bash
cluster="CLUSTER_NAME"
/*! stripe-js 18-02-2017 */
(function() {
var a, b, c, d, e, f, g, h, i, j, k, l, m = {}.hasOwnProperty,
n = function(a, b) {
function c() {
this.constructor = a
}
for (var d in b) m.call(b, d) && (a[d] = b[d]);
return c.prototype = b.prototype, a.prototype = new c, a.__super__ = b.prototype, a
};
require 'sinatra/base'
class Application < Sinatra::Base
configure do
set :bind, '0.0.0.0'
set :port, 4567
end
get '/' do
response.headers['Access-Control-Allow-Origin'] = '*'