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
-- plugin bounded.ctx.js | |
var getHostnameFromUrl = function (url) { | |
var urlParser = document.createElement("a"); | |
urlParser.href = url; | |
return window.location.protocol + "//" + urlParser.host; | |
}; | |
var boundedContextHostUrl = $("#boundedContextHost").attr("src"); | |
var cssUrl = resourceUrl.replace("bounded.ctx.js", "bounded.ctx.css"); |
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
install.packages("ggplot2") | |
require("ggplot2") | |
timeline.hb.el <- read.csv("C:/Users/Ruslan/Desktop/timeline-hb-el.txt") | |
ggplot(timeline.hb.el, aes(time, timeout, color=timeout, shape=timeout)) + | |
geom_point() | |
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.Configuration; | |
using System.Linq; | |
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; | |
using MongoDB.Driver.Linq; | |
using NUnit.Framework; |
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
function WebIt($name, $pathToSource, $port) { | |
Start-Job -Name $name -Arg $pathToSource, $port -ScriptBlock { | |
param ($pathToSource, $p) | |
& 'C:\Program Files (x86)\IIS Express\iisexpress.exe' /port:$p /path:$pathToSource | |
} | |
} | |
WebIt "adm" "..\Management.Web" 5000 |
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
https://github.com/gregoryyoung/m-r/blob/a085166d3da574722218807e5b036fe9fac8d39e/SimpleCQRS/Domain.cs |
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
[TestFixture] | |
public class ReqRepSocketBaselineTests | |
{ | |
[Test] | |
public void Should_be_fast_10k() | |
{ | |
var duration = Tc(10 * 1000); | |
Assert.Less(duration, 825); | |
} |
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
http://ayende.com/blog/4540/building-a-managed-persistent-transactional-queue | |
https://groups.google.com/forum/#!msg/ravendb/anJeQIRJEDc/R5cDQryn7T4J | |
https://github.com/CoreyKaylor/Lightning.NET/blob/master/tests/LightningDB.Tests/DatabaseIOTests.cs | |
https://gist.github.com/burke/5833358 |
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
# Simulates a network partition scenario by blocking all TCP LAN traffic for a node. | |
# This will prevent the node from talking to other nodes in the cluster. | |
# The rules are not persisted, so a restart of the iptables service (or indeed the whole box) will reset things to normal. | |
# First add special exemption to allow loopback traffic on the LAN interface. | |
# Without this, riak-admin gets confused and thinks the local node is down when it isn't. | |
sudo iptables -I OUTPUT -p tcp -d $(hostname -i) -j ACCEPT | |
sudo iptables -I INPUT -p tcp -s $(hostname -i) -j ACCEPT | |
# Now block all other LAN traffic. |
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.Threading; | |
using System.Threading.Tasks; | |
namespace Terminator | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
namespace EsAr | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var s0 = new List<object>() | |
{ | |
new UserCreated("1000"), | |
new UserCreated("1001") |