Skip to content

Instantly share code, notes, and snippets.

@dander
dander / parse-crashplan-csv.cs
Created November 10, 2016 07:41
search crashplan manifest (can be run in LINQPad in C# program mode)
void Main()
{
var result = ReadLines(@"D:\temp\crashplan\full-dump3.csv")
// faster initial tests...
// .Skip(1)
// .Take(10)
.Select(l => l.Split(','))
// extract properties of each csv row
.Select(l => new
{
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
<title>The Defrag Show (Audio) - Channel 9</title>
<atom:link rel="self" type="application/rss+xml" href="https://channel9.msdn.com/Shows/The-Defrag-Show/feed/mp3"></atom:link>
<itunes:summary>Channel 9&#39;s tech support and troubleshooting show hosted by Larry Larsen and Gov Maharaj. Send your questions to DefragShow@Microsoft.com. </itunes:summary>
<itunes:author>Microsoft</itunes:author>
<itunes:subtitle></itunes:subtitle>
<image>
@dander
dander / signtool.msbuild.tasks
Last active September 23, 2015 21:10 — forked from gregmac/signtool.msbuild.tasks
SignTool MSBuild Task
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Sign .exe files using signtool.exe.
(c) 2014 Greg MacLellan, Licensed under MIT http://opensource.org/licenses/MIT
Features:
* Hides password from being displayed in build output
* Retries against multiple timestamp servers if the server returns an invalid response (fairly common)
@dander
dander / DetectUpgrade.wxi
Created January 13, 2014 21:20
Upgrade detection properties for WiX (not tested but looks like a handy thing to have). I'm actually thinking this might make more sense in a Fragment instead of Include. based on: http://code.dblock.org/msi-property-patterns-upgrading-firstinstall-and-maintenance#comment-695361597
<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallInitialize"/>
<SetProperty Id="FirstInstall" After="FindRelatedProducts" Value="true">
NOT Installed AND NOT WIX_UPGRADE_DETECTED AND NOT WIX_DOWNGRADE_DETECTED
</SetProperty>
<SetProperty Id="Upgrading" After="SetFirstInstall" Value="true">
WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL")