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
[Fact] | |
public void Should_return_null_response_with_RequiresAuthentication_enabled_for_POST_requests_and_hit_with_GET() | |
{ | |
var module = new FakeHookedModule(A.Fake<BeforePipeline>()); | |
module.RequiresAuthentication().For("POST"); | |
module.Get["/"] = _ => { return "GET"; }; | |
module.Post["/"] = _ => { return "POST"; }; | |
var bootstrapper = new ConfigurableBootstrapper(); |
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
[Fact] | |
public void Should_return_unauthorized_response_for_route_based_authentication() | |
{ | |
var module = new FakeHookedModule(new BeforePipeline()); | |
module.Get["/public"] = _ => | |
{ | |
return HttpStatusCode.OK; | |
}; | |
module.Get["/secure"] = _ => |
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 StockChangeListener | |
{ | |
private readonly IRedisClient _client; | |
private readonly ILog _log; | |
public StockChangeListener(IRedisClient client, ILog log) | |
{ | |
_client = client; | |
_log = log; | |
Init(); |
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 IEnumerable<GeneralLedger> GetUnprocessedEntriesForOrganizationUnit(OrganizationUnit ou) | |
{ | |
using (var conn = _dapper.OpenConnection()) | |
{ | |
var query = string.Format(@" | |
SELECT GL.*, A.*, BOU.* | |
FROM GeneralLedger GL | |
INNER JOIN Accounts A ON (A.ID = GL.AccountID) |
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 static bool IsInSubnet(this IPAddress address, string subnets) | |
{ | |
if (String.IsNullOrEmpty(subnets)) | |
return false; // default allowed or not ? | |
if (address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6) | |
{ | |
return false; | |
} | |
var subnet_splitted = subnets.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); |
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
{"BackendOrderId":null,"SenderId":3,"Sender":{"Id":3,"Identifier":"1000000408","Name":"Dixons Amsterdam Kinkerstraat","BackendCompany":"00300","BackendRelationId":9002516,"BackendSupplierId":null,"Settings":{},"DocumentTypes":{"Bios.Edi.Schemas.OrderResponse, Bios.Edi.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null":"DummyCustomer.DummyCustomerOrderResponse, DummyCustomer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"},"BackendBusinessUnit":"30100"},"CreationTime":"0001-01-01T00:00:00","RequestedDate":null,"SoldTo":null,"ShipTo":null,"DeliverTo":null,"ShipToId":90021516,"SoldToId":0,"EndCustomerOrderReference":null,"OrderReference":"20140128:02:01","WebsiteOrderNumber":null,"PaymentTerms":null,"PaymentInstrument":" ","BackordersAllowed":false,"RouteCode":null,"HoldCode":null,"TaxArea":null,"Lines":[{"BackendLineId":0,"CustomerReference":null,"CustomerOrderLine":null,"ProductIdentifier":"682849","QuantityOrdered":1,"QuantityCancelled":0,"QuantityShipped":0,"QuantityBackordered":0,"Wareh |
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
// WORKS | |
// Receives messages from both 'All' & '7' channels | |
var connection = $.hubConnection(); | |
var proxy = connection.createHubProxy('applicationHub'); | |
var init = function () { | |
proxy.invoke('joinGroup', 7); | |
deferred.resolve(proxy); |
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
INFO: HOME -> ./ | |
INFO: HOME -> ./etc/ | |
INFO: HOME -> ./etc/cattle/ | |
INFO: HOME -> ./etc/cattle/api.crt | |
INFO: Sending host-config applied 1-e20561056f05a6c675686f380c69177d856a663c7d33c7914bbfffa3f304dd0f | |
time="2015-05-28T20:27:31Z" level="info" msg="Starting event router." | |
time="2015-05-28T20:27:31Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" | |
time="2015-05-28T20:27:31Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"1294e18fe4181c59c68733d5f11fd2777f8c71187ce6c3915aa7e90d1d60bb87\", From:\"\", Time:0}" | |
time="2015-05-28T20:27:31Z" level="error" msg="Error processing event &docker.APIEvents{Status:\"start\", ID:\"1294e18fe4181c59c68733d5f11fd2777f8c71187ce6c3915aa7e90d1d60bb87\", From:\"\", Time:0}. Error: Bad response from [http://xxxx.net:8080/v1/containerevents], statusCode [422]. Status [422 Unprocessable Entity]. Body: [{\"id\":\"75c82ddc-cff9-4924-aa6f-c2837114fe90\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"Inv |
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
[2015-06-24 19:49:18.624903] I [glusterfsd.c:1959:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.5.2 (/usr/sbin/glusterfs --volfile-server=localhost --volfile-id=/lockvol /gluster/lock) | |
[2015-06-24 19:49:18.646331] I [socket.c:3578:socket_init] 0-glusterfs: SSL support is NOT enabled | |
[2015-06-24 19:49:18.646359] I [socket.c:3593:socket_init] 0-glusterfs: using system polling thread | |
[2015-06-24 19:49:18.647235] E [socket.c:2178:socket_connect_finish] 0-glusterfs: connection to 127.0.0.1:24007 failed (Connection refused) | |
[2015-06-24 19:49:18.647279] E [glusterfsd-mgmt.c:1601:mgmt_rpc_notify] 0-glusterfsd-mgmt: failed to connect with remote-host: localhost (No data available) | |
[2015-06-24 19:49:18.647292] I [glusterfsd-mgmt.c:1607:mgmt_rpc_notify] 0-glusterfsd-mgmt: Exhausted all volfile servers | |
[2015-06-24 19:49:18.648618] W [glusterfsd.c:1095:cleanup_and_exit] (-->/usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_transport_notify+0x23) [0x7fccf971b123] (-->/usr/lib/x86_64-linux-gnu/libgfrp |
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 "azure" { | |
settings_file = "settings.txt" | |
} | |
resource "azure_instance" "example" { | |
name = "terraform-test" | |
image = "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_2-LTS-amd64-server-20150506-en-us-30GB" | |
size = "Basic_A1" | |
hosted_service_name = "exampleservice" | |
location = "West Europe" |
OlderNewer