- Check out the branch you want to truncate.
- Get the SHA1 hash of the commit in that branch you want to start history.
truncate.sh SHA1 branchname
liketruncate.sh 01cea49c9cbefd696bbd54ee41b47cbf1b6d1bd5 master
- Get the SHA1 hash of the new base commit.
- Get the date you want that commit to have in the format like
Sat, 14 Dec 2013 12:40:00 -0800
fixdate.sh SHA1 "date"
likefixdate.sh c776e91dd573053ec09ecb1b0737909f9aacd0c9 "Sat, 14 Dec 2013 12:40:00 -0800"
- Add a remote to the new repo.
- Push the updated branch to the remote.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
<!-- | |
body | |
{ | |
font-family: Calibri; | |
background-color: white; | |
color: black; | |
font-size: 11pt; | |
padding-left: 10pt; | |
padding-right: 10pt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}']" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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(" ", "") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"PresetList": [ | |
{ | |
"ChildrenArray": [ | |
{ | |
"AlignAVStart": false, | |
"AudioCopyMask": [ | |
"copy:aac", | |
"copy:ac3", | |
"copy:dtshd", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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}} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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") |