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>
View HandbrakeQueueReport.ps1
$reportFile = ".\QueueStatus.txt"
$handbrakeDir = Join-Path ([Environment]::GetFolderPath("ApplicationData")) -ChildPath "Handbrake"
[XML]$queue = Get-ChildItem -Path $handbrakeDir -Filter "hb_queue*.xml" |
Sort-Object -Property LastWriteTime -Descending |
Select-Object -First 1 |
$queue.ArrayOfQueueTask.QueueTask |
Select-Object -Property @{n='Status';e={$_.Status}},@{n='Source';e={$_.Task.Source}},@{n='Destination';e={$_.Task.Destination}} |
View ResetBestAppearance.au3
; AutoIt3 script for setting best appearance on Win2K8R2
; Used when drop shadows on icons, etc. disappear for unknown reason.
WinWaitActive("System Properties")
ControlCommand("System Properties", "", 12320, "TabRight", "")
;For some reason it used to be two tabs right, now it's just one.
;ControlCommand("System Properties", "", 12320, "TabRight", "")
WinWaitActive("Performance Options")