I hereby claim:
- I am crunchie84 on github.
- I am markvanstraten (https://keybase.io/markvanstraten) on keybase.
- I have a public key ASD1218mTzon-h7Lo8XRSRFF1xcj_LbGJasrSZqSZZgcuwo
To claim this, I am signing this object:
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; | |
}); |
using System; | |
using System.Text; | |
using Nest; | |
using NUnit.Framework; | |
namespace ClassLibrary1 | |
{ | |
public class MyObject | |
{ | |
public MyEnum MyEnum { get; set; } |
#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 |
partial from http://blog.dimaj.net/content/howto-view-and-analyze-your-logs-web-page | |
cd ~ | |
wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz | |
tar xzvf logstash-1.4.2.tar.gz | |
sudo mv logstash-1.4.2 /opt/logstash | |
sudo adduser --system --disabled-login --no-create-home --group logstash | |
sudo usermod -a -G adm logstash | |
#auto start script for logstash |
function Get-ProjectReferences | |
{ | |
param( | |
[Parameter(Mandatory=$True)] | |
[string]$rootFolder, | |
[string[]]$excludeProjectsContaining | |
) | |
dir $rootFolder -Filter *.csproj -Recurse | |
@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% |
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' |
REM just a snippet | |
msdeploy.exe | |
-verb:sync | |
-source:iisApp="%RootPath%mywebproject" | |
-dest:package="%RootPath%Website.zip" | |
-declareParamFile:"%RootPath%\parameters.xml" | |
I hereby claim:
To claim this, I am signing this object: