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
/* Initialize bus. In this case via Autofac */ | |
builder.RegisterModule(new RabbitModule | |
{ | |
HostName = "localhost", | |
UserName = "user", | |
Password = string.Empty, | |
Exchanges = { | |
new Exchange("exchange1"){Durable=true;}, | |
new Exchange("exchange2"){Durable=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
#!/bin/sh | |
baseurl=http://mygitlaburl | |
usermail=adminuser@mymailserver | |
userpass=adminpassword | |
repo_access=2 #0=denied 1=read 2=read&write | |
project_access=2 #0=deined 1=read 2=report 3=admin | |
# login | |
curl -s -I -c cookies.txt -d "utf8=✓&user[email]=$usermail&user[password]=$userpass&commit=Sign+in" $baseurl/users/sign_in |
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
public static class ObjectExtensions | |
{ | |
public static IEnumerable<T> ToMaybe<T>(this T obj) | |
{ | |
return Equals(obj,null) ? Enumerable.Empty<T>() : new[] {obj}; | |
} | |
} |
NewerOlder