Skip to content

Instantly share code, notes, and snippets.

View AnthonyMastrean's full-sized avatar
🏡
Working remotely

Anthony Mastrean AnthonyMastrean

🏡
Working remotely
View GitHub Profile
@AnthonyMastrean
AnthonyMastrean / wordlist.txt
Created September 26, 2014 14:28
mnemonic encoding
abraham
absent
absorb
academy
accent
acid
acrobat
action
active
actor
@AnthonyMastrean
AnthonyMastrean / batterymonitor.ps1
Created August 4, 2014 15:45
Battery Monitor and Event Log
Get-WmiObject -Class "BatteryStatus" -Namespace "root/WMI" | Export-Csv "batterymonitor.csv" -Append
@AnthonyMastrean
AnthonyMastrean / birmingham.js
Created July 28, 2014 19:01
Terrible Birmingham tech ad
/*
For
Digital business
(tech cluster
growing in
"Greater Birmingham")==true;
*/
@AnthonyMastrean
AnthonyMastrean / amazon.js
Created July 16, 2014 14:18
Amazon Short Link Bookmarklet
javascript:window.location='http://www.amazon.com/dp/'+(document.getElementsByName('ASIN')[0]||document.getElementsByName('ASIN.0')[0]).value;
@AnthonyMastrean
AnthonyMastrean / calculator.fs
Last active August 29, 2015 13:57
It only multiplies three numbers...
open FSharpx.Option
/// hour, a unit of time
[<Measure>] type h
/// megawatt, a unit of power
[<Measure>] type MW
/// pounds sterling, a unit of currency
[<Measure>] type ``£``
@AnthonyMastrean
AnthonyMastrean / consolefonts.ps1
Created February 20, 2014 22:50
Add font choices to the console
$script:ConsoleFontsKey = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont"
<#
.SYNOPSIS
Add a font to the available fonts list in the console.
.DESCRIPTION
This function will confirm that the font you provide is installed in the
system. And will confirm and manage adding the font properly to the
registry, per the rules.
@AnthonyMastrean
AnthonyMastrean / palette.rb
Created February 13, 2014 21:52
How to Choose Colours Procedurally
module ProceduralPalette
class Palette
end
end
@AnthonyMastrean
AnthonyMastrean / hotshow.ahk
Created February 10, 2014 22:17
Capture all keys pressed to display in a transparent overlay for use in pair programming or video capture
/*
-------------------------------------------------------
HotShow 1.0
-------------------------------------------------------
This program will show any pressed key or combination
of keys on screen in a very elegant way.
Perfect for people who creates video tutorials
and want to show which hotkeys they press during
@AnthonyMastrean
AnthonyMastrean / Get-TfsCodeClosure.ps1
Created February 1, 2014 18:47
TFS repository statistics
function Get-TfsCodeClosure {
<#
.SYNOPSIS
Report the relative degree of closure of a codebase.
.DESCRIPTION
Are you concerned that your codebase is a festering one? Want
proof? Then run this function at the solution root and watch as
it reports the number of check-ins per C# code file. This
function only works against TFS source control (and the working
@AnthonyMastrean
AnthonyMastrean / dotnet.ps1
Last active January 2, 2016 09:39
Boxstarter scripts
# no MSDN license here
cinst VisualStudio2012WDX
cinst VisualStudioExpress2012Web
cinst VisualStudioExpress2012Windows8
cinst IHateRegions
cinst IndentGuides
cinst NugetPackageManager
cinst PerfWatsonMonitor
cinst VSColorOutput