Skip to content

Instantly share code, notes, and snippets.

@qbikez
qbikez / perfcounters.ps1
Created March 3, 2017 04:20
a little Powershell Cmdle that makes performance measuring easier.
$script:perfstack = @()
$fullperfnames = $false
function measure-function([string] $__name, [scriptblock] $__command) {
$__result = $null
$__cmd = {
$__result = Invoke-Command $__command
}
if ($script:perfstack -eq $null) {
@usk81
usk81 / .gitconfig
Created February 13, 2014 02:24
my git alias
[core]
autocrlf = input
[alias]
diff = diff --color
last = log -1 HEAD
lg1=log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)—%an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2=log --graph --all --format=format:'%C(bold blue)%h%C(reset)- %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(boldyellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)—%an%C(reset)' --abbrev-commit
lg=!git lg1
master = checkout master
tag-show = for-each-ref --sort=-taggerdate --format='[%(taggerdate:short)] %(tag) %(taggername) %(subject)' refs/tags