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.Collections.Generic; | |
using System.Linq; | |
using Raven.Client.Documents; | |
using Raven.Client.Documents.Indexes; | |
using Raven.Client.ServerWide; | |
using Raven.Client.ServerWide.Operations; | |
namespace RavenIssueRepro | |
{ | |
class Program |
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
$transformer_exe = Resolve-Path "tools/transformer.exe" | |
$path = pwd | select -ExpandProperty Path | |
$args = @("transform", "--environment", $OctopusParameters["Octopus.Environment.Name"], "--path", $path, "--delete-templates") | |
if ([string]::IsNullOrEmpty($OctopusParameters["transformer.masterkey"]) -eq $false) { | |
write-host "add password" | |
$args += "--password" | |
$args += $OctopusParameters["transformer.masterkey"] |
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.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Security.Cryptography; | |
using ServiceStack; | |
using ServiceStack.Auth; | |
using ServiceStack.Configuration; | |
using ServiceStack.Host; | |
using ServiceStack.Host.Handlers; |
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
'use strict` | |
import IReturn = servicestack.IReturn; | |
import IPromise = angular.IPromise; | |
import IHttpService = angular.IHttpService; | |
export class ServiceClient implements IServiceClient { | |
public static $inject: string[] = ['$http', 'API_BASE_URL']; |
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
/// <summary> | |
/// Reports transaction names in NewRelic. | |
/// </summary> | |
public class NewRelicFeature : IPlugin, IAuthEvents | |
{ | |
private static readonly ILogger Log = LogManager.GetCurrentClassLogger(); | |
public const string LoginEvent = "login"; | |
public const string LogoutEvent = "logout"; |
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
function Update-AssemblyInfo | |
{ | |
[CmdletBinding()] | |
param( | |
[hashtable] $replacements = $null, # example hastable: @{ AssemblyVersion = "1.3.3.7"; AssemblyFileVersion = "1.3.3.7"; AssemblyInformationalVersion = "TOBI IS COOL <3" } | |
$path = (Get-Location) | |
) | |
$pattern = '(?<={0}\(")[^"]*(?="\))' |
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
param( | |
[string]$path, | |
[string]$regex, | |
[string]$name | |
) | |
$counter = 0 | |
Get-ChildItem $path -Recurse -Filter "*.cs" | Get-Content | % { | |
$result = [regex]::Matches($_, $regex, "IgnoreCase") |
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
[Test] | |
[TestCase("true", "true", "content 1\r\ncontent 2")] | |
[TestCase("true", "false", "content 1\r\n")] | |
[TestCase("false", "false", "\r\n")] | |
[TestCase("${true.condition}", "${true.condition}", "content 1\r\ncontent 2")] | |
[TestCase("${false.condition}", "${false.condition}", "\r\n")] | |
public void Multiple_Conditional_Transforming(string condition1, string condition2, string assert) | |
{ | |
var variableList = new List<Variable>() | |
{ |