In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood /...

18
In The Toolbox – In The Toolbox – Live! Live! (Tools of the Trade) (Tools of the Trade) Chris Oldwood Chris Oldwood ACCU Conference 2015 ACCU Conference 2015 @chrisoldwood / [email protected] @chrisoldwood / [email protected]

Transcript of In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood /...

Page 1: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

In The Toolbox – Live!In The Toolbox – Live!(Tools of the Trade)(Tools of the Trade)

Chris OldwoodChris Oldwood

ACCU Conference 2015ACCU Conference 2015

@chrisoldwood / [email protected]@chrisoldwood / [email protected]

Page 2: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Why the C Vu Column?Why the C Vu Column?

Page 3: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Part I - Tooling ChoicesPart I - Tooling Choices

Page 4: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

The Right ToolThe Right Tool

Page 5: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Finding TextFinding Text

FIND / FINDSTRFIND / FINDSTR GREP (EGREP / FGREP)GREP (EGREP / FGREP) BareGrep / BareTailBareGrep / BareTail Notepad / Notepad++Notepad / Notepad++ SEDSED AWKAWK PowerShellPowerShell Visual StudioVisual Studio GoogleGoogle

Page 6: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

The Wrong ToolThe Wrong Tool

Page 7: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

set filename=trello.jsonset releaseId=v1.5.2sed -n "/^\t\"cards\"/,/^\t}],/p" %filename% | ^egrep -i "idlist|shortUrl|idshort|name" | ^sed -n "/%releaseId%/,/shortUrl/p" | ^egrep -i "\"idshort\"|\"name\"" | ^sed "s/\s*.idShort...//" | ^sed "s/\s*.name.://" | ^sed "s/,$//" | ^sed "s/^\s*//;s/\s*$//" | ^sed "s/""//g" | ^gawk "!(NR%%3) { printf \"%%03s %%-14s %%s\n\", first, $0, second } { first=second; second=$0 }" | ^sort

Page 8: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

““If you cannot think of If you cannot think of three ways of abusing a three ways of abusing a tool, you do not tool, you do not understand how to use it.”understand how to use it.”-- Gerald Weinberg-- Gerald Weinberg

Page 9: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Home-Grown ToolsHome-Grown Tools

Page 10: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

One-LinersOne-Liners(No Pun Intended)(No Pun Intended)

Page 11: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

> PowerShell "gci Build\Release\Company*.dll | % { $_.VersionInfo }"

> for /r /d %d in (*.*) do @if exist "%d" rmdir /q "%d" 2> nul

> for /d %d in (*) do @echo "%d" && pushd "%d" && (if exist "clean.cmd" call clean.cmd --all) && (if exist "Source\clean.cmd" pushd Source && call clean.cmd --all && popd) && popd

> sed -n "/<ProjectReference/,/<\/ProjectReference/p" proj.csproj | egrep "Name" | gawk "match($0,/>(.+)</,ary) {print ary[1]}" | sort > "%temp%\csproj-refs“ && egrep "dependency" proj.nuspec | gawk "match($0,/=\042(.+)\042 v/,ary) {print ary[1]}" | sort > "%temp%\nuspec-deps“ && diff --ignore-case --side-by-side "%temp%\csproj-refs" "%temp%\nuspec-deps"

Page 12: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

AutomationAutomation

Page 13: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Part II – Unlikely ChoicesPart II – Unlikely Choices

Page 14: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Pen & PaperPen & Paper

Page 15: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Dictionary & ThesaurusDictionary & Thesaurus

Page 16: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

““Never use the words get, Never use the words get, put or nice.”put or nice.”-- My Wife’s English -- My Wife’s English TeacherTeacher

Page 17: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Questions?Questions?

Page 18: In The Toolbox – Live! (Tools of the Trade) Chris Oldwood ACCU Conference 2015 @chrisoldwood / gort@cix.co.uk.

Want to Know More?Want to Know More?

C Vu – In The Toolbox C Vu – In The Toolbox (http://www.chrisoldwood.com/(http://www.chrisoldwood.com/

articles.htm)articles.htm)

http://chrisoldwood.blogspot.comhttp://chrisoldwood.blogspot.com

http://github.com/chrisoldwoodhttp://github.com/chrisoldwood

@chrisoldwood / [email protected]@chrisoldwood / [email protected]