TechBlog

find problem | solve | publish

Skip to content
Menu
  • Home
  • About

Tag: Powershell

GeneralPosted onApril 21, 2018April 25, 2018

Dynamically changing build numbers by branch in TeamCity

We use feature branches, and build all of them on our TeamCity CI setup. Every build can be deployed on our test servers, but it’s useful to be able to quickly distinguish which ones came from master and which came from other branches. I took a script from here and…

Read More
GeneralPosted onSeptember 14, 2017September 14, 2017

Magic Commands – cleaning up ASP.NET temporary files

ASP.NET temporary files can quickly mount up and eat up disk space, especially if you deploy multiple times a day. This website provides a handy command that you can run to delete any unnecessary files: Get-ChildItem “C:\Windows\Microsoft.NET\Framework*\v*\Temporary ASP.NET Files” -Recurse | Remove-Item -Recurse You’ll get a few errors when it…

Read More
GeneralPosted onSeptember 14, 2017April 21, 2018

How to time how long something takes to run in Windows

It can be useful to time how long certain commands take to run. With Powershell, you can do this easily using the Measure-Command cmdlet: Measure-Command { ping google.com | Out-Default } Simply replace ping google.com with whatever you want to time, and off you go. You’ll get a readout similar…

Read More

Flair

profile for adrian at Stack Overflow, Q&A for professional and enthusiast programmers

Useful links

  • Dev Cheatsheet
  • Regex Tester
  • Ruby Koans
  • Sysinternals Suite

Recent posts

  • Static code analysis with NDepend
  • MongoDB doesn’t serialise C# read-only properties
  • Dynamically changing build numbers by branch in TeamCity
  • MongoDB backup script
  • Diagnosing issues with Elasticsearch

Tags

ANTLR ASP.NET MVC Build C# CI Disk Cleanup Elasticsearch Excel Extensions FxCop Git Gitolite Java JavaScript Magic Commands MongoDB NAnt PostgreSQL Powershell Proxy RavenDB registry Script Slack SQL TeamCity Transformers Visual Studio VS2010 Web Platform Installer Windows Windows Server

Archive

  • August 2018
  • May 2018
  • April 2018
  • September 2017
  • November 2016
  • September 2016
  • July 2013
  • May 2013
  • April 2013
  • January 2012
  • November 2011
  • September 2011
  • August 2011
  • July 2011
  • April 2011
  • March 2011
  • February 2011
© Copyright 2022 – TechBlog
Allium Theme by TemplateLens ⋅ Powered by WordPress