Category Archives: Uncategorized

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

RavenDB: CryptographicException & FormatException: Input string was not in a correct format

If you get an error similar to the below and are using encrypted databases, make sure that you’re running the RavenDB process as the same user you were when the databases were created/encrypted. The encryption keys are stored in per-user … Continue reading

Posted in Uncategorized | Comments Off on RavenDB: CryptographicException & FormatException: Input string was not in a correct format

Pukka tea tasting notes

I bought a Pukka teas taster pack a few weeks ago, and kept notes so I could remember which ones I wanted to buy more of. These are my personal tastes and opinions, your results may differ! star anise & cinnamon – … Continue reading

Posted in Uncategorized | Comments Off on Pukka tea tasting notes

PSake: “Exception: Unknown .NET Framework version, 4.6.1 specified in 4.6.1.”

If you get this error, you may have run another PSake script with a different framework version in the same PowerShell session. Open a new PowerShell window and try again.

Posted in Uncategorized | Comments Off on PSake: “Exception: Unknown .NET Framework version, 4.6.1 specified in 4.6.1.”

Rewriting git history – removing a directory

git filter-branch –force –index-filter ‘git rm –cached -r –ignore-unmatch directoryToRemove’ –prune-empty — –all git push origin master –force

Posted in Uncategorized | Comments Off on Rewriting git history – removing a directory

Running IISRESET from Visual Studio

If you want a quick way of running IISRESET from within Visual Studio: Tools > External Tools… Add a new menu item to run C:\Windows\System32\iisreset.exe (note the checkboxes at the bottom)… You then get a new menu item… And the … Continue reading

Posted in Uncategorized | Comments Off on Running IISRESET from Visual Studio

UAC, Windows 10 and Visual Studio

http://stackoverflow.com/questions/12257110/can-you-force-visual-studio-to-always-run-as-an-administrator-in-windows-8 fix.reg: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers] “C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe”=”~ RUNASADMIN”

Posted in Uncategorized | Comments Off on UAC, Windows 10 and Visual Studio