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 Get-ProjectReferences | |
{ | |
param( | |
[Parameter(Mandatory=$True)] | |
[string]$rootFolder, | |
[string[]]$excludeProjectsContaining | |
) | |
dir $rootFolder -Filter *.csproj -Recurse | |
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
@echo off | |
SET subjectName="My-Azure-Certificate" | |
SET outputCertFile="AzureConf.cer" | |
SET storeName="My" | |
SET storeLocation="LocalMachine" | |
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\makecert" -r -pe -a sha1 -n CN=%subjectName% -ss %storeName% -sr %storeLocation% -len 2048 -sp "Microsoft Enhanced RSA and AES Cryptographic Provider" -sy 24 %outputCertFile% |
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
basePath = '';// base path, that will be used to resolve files and exclude | |
files = [ | |
JASMINE, JASMINE_ADAPTER, | |
'js/libs/jquery-*.min.js', | |
// source files | |
'js/my-epic-menu.js', | |
//the tests (specs) | |
'tests/spec/**/*.js' |
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
REM just a snippet | |
msdeploy.exe | |
-verb:sync | |
-source:iisApp="%RootPath%mywebproject" | |
-dest:package="%RootPath%Website.zip" | |
-declareParamFile:"%RootPath%\parameters.xml" | |
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
namespace Domain.TypeConverters | |
{ | |
using System; | |
using Newtonsoft.Json; | |
/// <summary> | |
/// Converter for converting Uri to String and vica versa | |
/// </summary> | |
/// <remarks> | |
/// Code originated from http://stackoverflow.com/a/8087049/106909 |
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
var settings = new ConnectionSettings("http://localhost:9200) | |
.AddContractJsonConverters(type => | |
{ | |
//TypeCheck to return StringEnumConverter for Enums and Nullable<T> where T : Enum | |
if (type.IsEnum || (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>) && type.GetGenericArguments().First().IsEnum)) | |
return new Newtonsoft.Json.Converters.StringEnumConverter(); | |
return null; | |
}); |
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 Nest; | |
using System; | |
using System.Globalization; | |
namespace elasticsearch_nest_geoindex_demo | |
{ | |
public class Location | |
{ | |
public string Name { get; set; } |
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
namespace Elasticsearch.Net.Connection | |
{ | |
using System.Globalization; | |
using System; | |
using System.Text; | |
/// <summary> | |
/// HttpConnection with basic auth usage | |
/// </summary> | |
public sealed class BasicAuthHttpConnection : HttpConnection |
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.Text; | |
using Nest; | |
using NUnit.Framework; | |
namespace ClassLibrary1 | |
{ | |
public class MyObject | |
{ | |
public MyEnum MyEnum { get; set; } |
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
#https://github.com/elasticsearch/curator/wiki/Installation | |
apt-get install python-pip python-dev build-essential | |
pip install elasticsearch-curator | |
which curator | |
# => /usr/local/bin/curator | |
crontab -e | |
# add this to run at 3:01AM cleanup of old indices older then 90 days |
OlderNewer