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 StandardNoStopWordsAnalyser : StandardAnalyzer | |
{ | |
public StandardNoStopWordsAnalyser() : base(Version.LUCENE_29, new HashSet<string>()) { } | |
} |
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
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Index Request" enabled="true" stopProcessing="true"> | |
<match url="^$"/> | |
<action type="Rewrite" url="App/app.html" logRewrittenUrl="true"/> | |
</rule> | |
</rules> |
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.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using BrockAllen.MembershipReboot; | |
namespace Acme.Users.MembershipReboot | |
{ | |
public class AcmeUserAccountService<TAccount> : UserAccountService<TAccount> |
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
# get indexes in "logstash" alias | |
$indexes = Invoke-RestMethod "http://localhost:9200/logstash/_settings" | |
# get the names of the indexes | |
$indexNames = Get-Member -InputObject $indexes -MemberType NoteProperty|%{$_.Name} | |
# foreach index check its age. If over 10 days, delete it | |
$indexNames|sort |%{ | |
$datePart = $_.Substring(9) | |
$indexAge = [datetime]::UtcNow.Date.Subtract([DateTime]::Parse($datePart)).Days |
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 Install-PsGet { | |
$Destination = "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" | |
New-Item -Path ($Destination + "\PsGet\") -ItemType Directory -Force | Out-Null | |
Write-Host 'Downloading PsGet from https://github.com/psget/psget/raw/master/PsGet/PsGet.psm1' | |
$client = (New-Object Net.WebClient) | |
$client.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials | |
$client.DownloadFile("https://github.com/psget/psget/raw/master/PsGet/PsGet.psm1", $Destination + "\PsGet\PsGet.psm1") | |
Write-Host "PsGet is installed and ready to use" -Foreground Green | |
} |
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 Common.Logging; | |
using Common.Logging.Configuration; | |
using NLog; | |
using NLog.Targets; | |
using CommonLogging = Common.Logging; | |
namespace Hydra.Common.Infrastructure.Crosscutting.Logging.NLog | |
{ |
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 Microsoft.Synchronization; | |
using Microsoft.Synchronization.MetadataStorage; | |
using Microsoft.Synchronization.SimpleProviders; | |
namespace RemoteStorage | |
{ | |
/// <summary> | |
/// Abstract class containing common functionality used by all FullEnumerationSimpleSyncProviders |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\Help] |
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
// See: http://social.msdn.microsoft.com/Forums/en-US/adonetefx/thread/4aa54da1-3099-48ef-9402-ca94cbca19eb/ | |
builder.DiscoverEntitiesFromContext(typeof(MyContext)); | |
DbModel model = builder.CreateModel(); | |
XmlWriter writer = new XmlTextWriter(Path + "MyContext.edmx", Encoding.UTF8); | |
model.WriteEdmx(conn, writer); | |
writer.Close(); |
OlderNewer