This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserSettings> | |
<ApplicationIdentity version="10.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"> | |
<ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="ShowMiscFilesProject">false</PropertyValue> | |
<PropertyValue name="AutoloadExternalChanges">true</PropertyValue> | |
<PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue> | |
<PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue> | |
<PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracking = for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.slog "log -n 10 --format=format:'%Creset%an %Cgreen%ar:%Creset%s %Cred%h'" | |
git config --global alias.ci "!git add -A && git commit" | |
git config --global alias.tracking "for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads" | |
git config --global alias.s "status --short" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Moq; | |
using NUnit.Framework; | |
using Specs.Core; | |
using Specs.Reporting.Mixins; | |
using TNW.Common.nHibernate; | |
using TNW.Reporting.Web.Controllers; | |
namespace Specs.Reporting.Web.Controllers | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Web.Mvc; | |
using Moq; | |
using NUnit.Framework; | |
using TNW.Reporting.Domain.Common; | |
using TNW.Reporting.Domain.Entities.User; | |
using TNW.Reporting.Domain.Managers; | |
using TNW.Reporting.Test.Common; | |
using TNW.Reporting.Web.Controllers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Hide the script's tray icon | |
#NoTrayIcon | |
;Use the same icon of console.exe for the script's tray icon (note that "#NoTrayIcon" hide the default one and any other icon, you must delete or coment "#NoTrayIcon" in order to show this icon in taskbar) | |
:Menu, Tray, Icon, console.exe, 1 | |
; Launch console if necessary; hide/show on Win+` | |
;You can coustomise this by yourself #=Win, !=Alt, ^=Ctrl, +=Shift, see (http://www.autohotkey.com/docs/Hotkey.htm - http://www.autohotkey.com/docs/KeyList.htm ) | |
#`:: | |
DetectHiddenWindows, on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void It_should_play() { | |
int completeAttestations = 38; | |
int totalAttestations = 84; | |
Expect(Math.Round((double)((completeAttestations * 100) / totalAttestations)), EqualTo(Math.Round(completeAttestations * 100d / totalAttestations))); | |
var actualUnrounded = (double)((completeAttestations * 100) / totalAttestations); | |
var expectedUnrounded = completeAttestations * 100d / totalAttestations; | |
Expect(actualUnrounded, EqualTo(expectedUnrounded), "Actual: <{0}>, Expected: <{1}>".FormatWith(actualUnrounded, expectedUnrounded)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Pivotal Biggify | |
// @description Makes Pivotal usable on a big board | |
// @include https://*.pivotaltracker.com/* | |
// ==/UserScript== | |
if (location.hostname == 'www.pivotaltracker.com') { | |
setInterval(function() { | |
document.getElementById('header').style.display = 'none'; | |
document.getElementById('controlPanel').style.display = 'none'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#When something goes wrong... | |
###Deploy `master` to UK, find a bug at some point during the week. | |
This scenario is the one we're hoping will happen the most of the least likely scenarios :) (Yeah, kinda confusing sentence, but read it again) | |
* `DARLENE` is deployed to UK on Friday and it's master as of midnight Thursday. | |
* `CHARLIE` is the lagged release deployed to US on the same Friday. | |
* `EDNA` is the release that started the moment the first commit went in after midnight on Thursday on master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Powershell - Lesson 1 | |
Configuration: | |
Powershell profile | |
Import-Module Grc | |
(Test it w/ `Get-GrcTenants`) | |
Syntax: | |
Variable declaration $ | |
Powershell variables ( $true, $null, $false, etc ) | |
Control Structures | |
Conditionals (-eq, -ne, -contains, etc) |
OlderNewer