View Measure-TargetFramework.ps1
Get-ChildItem -Path C:\path\to\project\root -Filter *.csproj -Recurse |
Select-Xml -Namespace @{msb=""} -XPath "//msb:TargetFrameworkVersion" |
Select-Object -Property @{Name="TargetFrameworkVersion"; Expression={$_.Node.InnerXml}} |
Select-Object -ExpandProperty TargetFrameworkVersion |

Values for the transpose parameter:

  • 0 = 90 counter-clockwise and vertical flip (default)
  • 1 = 90 clockwise
  • 2 = 90 counter-clockwise
  • 3 = 90 clockwise and vertical flip

To rotate 180 degrees, use "transpose=2,transpose=2"

Using -codec:a copy will simply copy the audio instead of reencoding it.

View word.css
<style type="text/css">
font-family: Calibri;
background-color: white;
color: black;
font-size: 11pt;
padding-left: 10pt;
padding-right: 10pt;
View FormatConfigFiles.proj
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="All" InitialTargets="_SetVersion" xmlns="" ToolsVersion="4.0">
<Import Project="$(MSBuildProjectDirectory)\toolset\msbuildcommunitytasks\MSBuild.Community.Tasks.Targets"/>
<Target Name="_Tidy">
View Set-SemanticQualfier.ps1
# Run this in a build step and the
# gets subbed in with "True" or "False"
if(-not $
Write-Host "##teamcity[setParameter name='env.SemanticQualifier' value='-beta{0}']"
View Find-SdMovies.ps1
$fileLocation = "\\diskstation\video\Movies\"
# This is the CLI version of MediaInfo
$mediaInfoLocation = "C:\util\MediaInfo.exe"
Get-ChildItem $fileLocation -Filter *.m4v -Recurse | %{
$path = $_.FullName
[xml]$info = & $mediaInfoLocation --Output=XML "$path"
$video = $info.Mediainfo.File.track | Where-Object { $_.type -eq "Video" }
$width = [int]$video.Width.Replace(" pixels", "").Replace(" ", "")
View Sort-PictureFiles.ps1
Sorts picture files from camera sources into appropriate
folders for filing.
Compares the set of pictures in the camera source folder
and the backup folder, then merges/sorts the contents into
a third location based on how they need to be filed.
Items get sorted into one of four groups:
  1. Check out the branch you want to truncate.
  2. Get the SHA1 hash of the commit in that branch you want to start history.
  3. SHA1 branchname like 01cea49c9cbefd696bbd54ee41b47cbf1b6d1bd5 master
  4. Get the SHA1 hash of the new base commit.
  5. Get the date you want that commit to have in the format like Sat, 14 Dec 2013 12:40:00 -0800
  6. SHA1 "date" like c776e91dd573053ec09ecb1b0737909f9aacd0c9 "Sat, 14 Dec 2013 12:40:00 -0800"
  7. Add a remote to the new repo.
  8. Push the updated branch to the remote.
View user_presets.json
"PresetList": [
"AudioCopyMask": [
View user_presets.xml
<?xml version="1.0"?>
<ArrayOfPreset xmlns:xsd="" xmlns:xsi="">
<Category>User Presets</Category>
<Description />
<Name>Illig High Profile - SD Film</Name>