View word.css
<style type="text/css">
<!--
body
{
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="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="$(MSBuildProjectDirectory)\toolset\msbuildcommunitytasks\MSBuild.Community.Tasks.Targets"/>
<Target Name="_Tidy">
<ItemGroup>
<ConfigFiles
Include="$(MSBuildProjectDirectory)\**\*.config"
Exclude="$(MSBuildProjectDirectory)\packages\**\*.*;
$(MSBuildProjectDirectory)\**\packages.config;
$(MSBuildProjectDirectory)\**\NuGet.config;
View Set-SemanticQualfier.ps1
# Run this in a build step and the %teamcity.build.branch.is_default%
# gets subbed in with "True" or "False"
if(-not $%teamcity.build.branch.is_default%)
{
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
# https://mediaarea.net/en/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
<#
.Synopsis
Sorts picture files from camera sources into appropriate
folders for filing.
.DESCRIPTION
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:
View README.md
  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. truncate.sh SHA1 branchname like truncate.sh 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. fixdate.sh SHA1 "date" like fixdate.sh 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": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
View user_presets.xml
<?xml version="1.0"?>
<ArrayOfPreset xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Preset>
<Category>User Presets</Category>
<Description />
<IsBuildIn>false</IsBuildIn>
<IsDefault>false</IsDefault>
<Name>Illig High Profile - SD Film</Name>
<PictureSettingsMode>Custom</PictureSettingsMode>
<UseDeinterlace>false</UseDeinterlace>
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 |
Get-Content
$queue.ArrayOfQueueTask.QueueTask |
Select-Object -Property @{n='Status';e={$_.Status}},@{n='Source';e={$_.Task.Source}},@{n='Destination';e={$_.Task.Destination}} |
View ResetBestAppearance.au3
#RequireAdmin
; AutoIt3 script for setting best appearance on Win2K8R2
; Used when drop shadows on icons, etc. disappear for unknown reason.
ShellExecute("sysdm.cpl")
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", "")
Send("!s")
WinWaitActive("Performance Options")