Monthly Archives: April 2017

Creating a self signed SSL certificate on Windows using PowerShell

Run this PowerShell command as Administrator: New-SelfSignedCertificate –DnsName *.local-dev.com –CertStoreLocation cert:\LocalMachine\My Open Manage Computer Certificates (typing certificates in the Start menu should find it) Open Personal\Certificates Find the *.local-dev.com certificate that has an expiration date of a year from today. … Continue reading

Posted in Uncategorized | Leave a comment

Deleting local git branches that have been merged on the remote using PowerShell

This is useful but hard to find a PowerShell version of. I found it here: git branch –merged | %{$_.trim()} | ?{$_ -notmatch ‘develop’ -and $_ -notmatch ‘master’} | %{git branch -d $_}

Posted in Uncategorized | Leave a comment

Setting all indexes to have zero replicas with Elasticsearch

To configure all indexes (including existing ones) to have zero replicas (useful if running on only one server, e.g. in development), execute this (syntax assumes you’re using Sense): PUT /_settings { “index” : { “number_of_replicas” : 0 } } Then … Continue reading

Posted in Uncategorized | Leave a comment

Stdout logging in ASP.NET 1.1.1 Azure Web Apps

Because I keep forgetting it: stdoutLogEnabled=”true” stdoutLogFile=”\\?\%home%\LogFiles\stdout”

Posted in Uncategorized | Leave a comment