Skip to content

Instantly share code, notes, and snippets.

View jbogard's full-sized avatar

Jimmy Bogard jbogard

View GitHub Profile
@ecampidoglio
ecampidoglio / git-cpr-alias.md
Created October 30, 2019 12:19
Checkout Pull Request

Checkout Pull Request

A Git alias to quickly check out a Pull Request branch in a single move. ⚡

git config --global alias.cpr '!f() { git fetch --quiet ${GIT_DEFAULT_REMOTE-origin} pull/$1/head:pulls/$1 && git checkout pulls/$1; }; f'

Usage

[merge]
tool = p4merge
ff = no
[diff]
tool = p4merge
guitool = p4merge
renames = copies
[difftool]
prompt = false
[mergetool]
@jbogard
jbogard / PurgeAllPrivateQueues.ps1
Created February 14, 2013 15:54
Purge all private queues
[Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("localhost") | % { $_.Purge() }
@jbogard
jbogard / DeleteAllPrivateQueues.ps1
Last active December 13, 2015 18:09
Delete all private queues
[Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("localhost") | % { [System.Messaging.MessageQueue]::Delete($_.Path) }
Script
1. Test Base Class
2. Unique, Identifiable Links
3. Encapsulate in our tests
4. Strongly-typed views