Skip to content

Instantly share code, notes, and snippets.

View cdhunt's full-sized avatar

Chris Hunt cdhunt

View GitHub Profile
@cdhunt
cdhunt / kanban.md
Created December 17, 2015 16:19
Re:Kanban

I agree with you, but prefer to decouple philosophy from tools. It's just semantics, but in the history of business organization there is a tendency to distill a philosophy down to a few bullet points and believe following those bullet points is all that is needed to be successful. One of the bullet points is usually, "Use XYZ tool." Just putting up a board with cards on it isn't likely going to make your business more successful. It's just a tool. You have to learn how to use it. Sorry if you took my weakness with words as an attack on your efforts to do just that.

# https://bitbucket.org/gfkeogh/simpledb/wiki/Home
Add-Type -Path C:\Scripts\Modules\SimpleDb\SimpleDb.Esent.dll
# Data Model
$episodeClass = @"
using System;
public class Episode
{
public string Series { get; set; }
public int Id { get; set; }
@cdhunt
cdhunt / Mount Outlook Drive
Last active May 22, 2020 23:54
Browse your email from PowerShell like a folder
Import-Module Simplex
New-PSDrive mail -psprovider simplex -root "C:\Temp\outlookprov.ps1"
cd mail:\Inbox
Verifying that +cdhunt is my blockchain ID. https://onename.com/cdhunt
function Register-HistoryInfoCustomType
{
Update-TypeData -TypeName Microsoft.PowerShell.Commands.HistoryInfo `
-MemberType ScriptProperty `
-MemberName TotalExecutionTime `
-value { $this.EndExecutionTime - $this.StartExecutionTime} `
-Force
}
@cdhunt
cdhunt / Challenge 1 Solution 1
Created February 26, 2015 12:58
February 2015 NoVA PSUG Mini-Scripting Games Solutions
$WebRequest = Invoke-WebRequest http://www.presidentsusa.net/presvplist.html
$tables = @($WebRequest.ParsedHtml.getElementsByTagName("TABLE"))
$table = $tables[0]
$titles = @()
$rows = @($table.Rows)
$arrPresidents = @()
foreach($row in $rows){
$cells = @($row.Cells)
@cdhunt
cdhunt / PerfmonCountersDrive
Last active August 29, 2015 14:04
Perfmon Counter Provider
root {
Get-Counter -ListSet * | Select-Object -ExpandProperty CounterSetName | foreach-object {
$content = $_;
script $content {
Get-Counter -ListSet $content
}.GetNewClosure();
}
}
@cdhunt
cdhunt / PoshImageProcessor
Created May 22, 2014 19:11
Posh Wrapper for the .Net ImageProcessor library
<#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
#>
@cdhunt
cdhunt / Humanizer.psm1
Last active September 7, 2017 22:35
Making Humanizer a bit easier to use in Powershell.
<#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
#>
@cdhunt
cdhunt / WatiNonPSate.ps1
Created March 27, 2014 15:07
Running automated browser tests with WatiN and PSate.
Add-Type -Path C:\WatiN\bin\net40\WatiN.Core.dll
if ( [string]::IsNullOrEmpty([psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::get["Find"]) )
{
[psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::add("Find", "WatiN.Core.Find")
}
Describing 'Bing Search' {
Given 'Search for "Automated Ops"' {