- feature
- fix
- hotfix
- spike
- release (to staging)
Install-Module Pscx | |
Install-Module posh-git | |
Install-Module PSReadLine | |
Install-Module PSake | |
Install-Module Pester |
public struct Option<T> | |
{ | |
private readonly T _value; | |
public T Value | |
{ | |
get | |
{ | |
if (!HasValue) | |
throw new InvalidOperationException(); |
Import-Module SqlServer | |
$srv = New-Object Microsoft.SqlServer.Management.Smo.Server("(local)") | |
$db = $srv.Databases.Item("IntermediaryManagement.DB") | |
$scrp = New-Object Microsoft.SqlServer.Management.Smo.Scripter($srv) | |
$scrp.Options.ScriptData = $TRUE | |
$scrp.Options.ScriptSchema = $FALSE | |
$tbl = $db.tables | Where-Object { $_.IsSystemObject -eq $FALSE } | |
$scrp.EnumScript(@($tbl)) | %{ Add-Content temp.sql $_ } |
// .csproj | |
// <PackageReference Include="System.Data.SqlClient" Version="4.3.0" /> | |
// <PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" /> | |
namespace HorribleThingsInHere | |
{ | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Reflection; |
Windows Registry Editor Version 5.00 | |
; The hex data is in five groups of four bytes: | |
; 00,00,00,00,\ header version (always 00000000) | |
; 00,00,00,00,\ header flags (always 00000000) | |
; 02,00,00,00,\ # of entries (1 in this case) plus a NULL terminator line. | |
; Entries are in 2-byte pairs: Key code to send & keyboard key to send it. | |
; Each entry is in LSB, MSB order. | |
; 01,00,3a,00,\ Send ESC (0x0001) code when user presses the CAPS LOCK key (0x003a) | |
; 00,00,00,00 NULL terminator |
# 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 |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Colemak Mod-DH angle wide mapping for ANSI boards | |
SC029::Esc | |
;SC002::1 | |
;SC003::2 |
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.
namespace Demo.Repository.Specifications | |
{ | |
public class IssueByNameSpecification : Specification<Issue> | |
{ | |
private readonly string key; | |
public IssueByNameSpecification(string key) | |
{ | |
this.key = key; | |
} |