Skip to content

Instantly share code, notes, and snippets.

View Boggin's full-sized avatar
💭
bleep bloop blorp

Richard Bogle Boggin

💭
bleep bloop blorp
View GitHub Profile
@Boggin
Boggin / .git-commit-template.txt
Last active May 9, 2016 10:51 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@Boggin
Boggin / boxstarter.dev
Last active June 19, 2019 21:12
Boxstarter script
# START http://boxstarter.org/package/url?https://gist.github.com/Boggin/5bcaa3cf4712f6801d0010cab64ee8f3/boxstarter.dev
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
if (Test-PendingReboot) { Invoke-Reboot }
# Configure Windows

Git Workflow

Names for branches

  • feature
  • fix
  • hotfix
  • spike

Major branches

  • release (to staging)
@Boggin
Boggin / spf13-vim-windows-install.cmd
Created September 22, 2015 11:30
Install spf13's Vim on Windows XP (after adding fsutil and junction.exe).
REM Copyright 2014 Steve Francia
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
@Boggin
Boggin / ContainerConfig.cs
Created March 24, 2015 14:54
Register MEF for both ASP.NET MVC and Web API using conventions.
namespace Portal.Web
{
using System.Composition.Convention;
using System.Composition.Hosting;
using System.Reflection;
using System.Web.Http;
using System.Web.Http.Controllers;
public static class ContainerConfig
{
@Boggin
Boggin / git-tfs.markdown
Last active October 14, 2020 08:22
Git Tfs : HowTo

Git Tfs

If you would like to use git locally against the TFS repositories you can use git-tfs.

You can install git from the Windows installer: http://git-scm.com/downloads.
I prefer to install the bash command line and all the Unix tools. You may still prefer to use the GUI which is installed at the same time.

Then you can install git-tfs via chocolatey.
Note: If you don't have chocolatey goodness yet then see the Chocolatey Install section below.

@Boggin
Boggin / CreateConfigurationCommand.cs
Created December 29, 2014 16:17
A workaround Sql Bulk Insert for Entity Framework 6.
namespace Data.Commands
{
using System;
using System.Data;
using System.Data.Entity;
using System.Data.SqlClient;
using System.Diagnostics;
public class CreateConfigurationCommand
{
@Boggin
Boggin / MyController.cs
Last active January 19, 2016 15:02
A WebAPI Controller for an Azure WebRole that can manage a request that will take a long time to fulfill.
namespace WebRole.Controllers
{
public class MyController : ApiController
{
private readonly ICache cache;
private readonly IMyRequestQueue myRequestQueue;
public MyController(
ICache cache,
@Boggin
Boggin / level-meter.css
Last active August 29, 2015 14:04
AngularJS level-meter directive.
.level-meter__content {
background: #fff;
}
.level-meter__box {
fill: none;
stroke: #7d7d7d;
}
.level-meter__bar-empty {
fill: #7d7d7d;
stroke: #7d7d7d;

Keybase proof

I hereby claim:

  • I am boggin on github.
  • I am boggin (https://keybase.io/boggin) on keybase.
  • I have a public key whose fingerprint is 4548 9E13 27AA 9DAC C2F2 0527 96AC C195 ACFB 5646

To claim this, I am signing this object: