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
FROM centos:latest AS libgit2-15e1193 | |
RUN yum install -y git | |
RUN yum install -y cmake gcc make openssl-devel | |
RUN git clone --recursive https://github.com/libgit2/libgit2sharp.nativebinaries /nativebinaries | |
WORKDIR /nativebinaries | |
# Latest commit that will produce libgit2-15e1193 | |
RUN git checkout e6fde40 | |
# Build lib files and output them under ./libgit2/build/* | |
RUN ./build.libgit2.sh |
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]$targetFramework = 'net45' | |
) | |
$ErrorActionPreference = 'Stop' | |
function Install-Package($name, $version) | |
{ | |
if (!(Test-Path "$PSScriptRoot\$name.$version\**\$targetFramework\$name.dll")) | |
{ |
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.Linq; | |
using Couchbase.Lite; | |
using Couchbase.Lite.Util; | |
namespace CouchbaseWalIssue | |
{ | |
public 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
internal class Program | |
{ | |
private const string DB_NAME = "app2"; | |
private const string OTHER_DB_NAME = "app1"; | |
private const string OTHER_DB_IP = "127.0.0.1"; | |
private const ushort OTHER_DB_PORT = 59840; | |
private static readonly Uri OtherUrl = new Uri($"http://{OTHER_DB_IP}:{OTHER_DB_PORT}/{OTHER_DB_NAME}"); |
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
internal class Program | |
{ | |
private const string DB_NAME = "app1"; | |
private const ushort DB_PORT = 59840; | |
private static Manager manager; | |
private static Database db; | |
private static void Main() | |
{ |
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( | |
[Parameter(Mandatory=$true)]$package, | |
$solution = (Get-Item *.sln), | |
$nuget = "nuget.exe" | |
) | |
& $nuget update "$solution" -Id "$package" | |
$sln = Get-Content $solution | |
[regex]$regex = 'Project\("{.*?}"\) = ".*?", "(.*?\.csproj)", "{.*?}"' |