This file contains hidden or 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
Pushing to custom source | |
Failed to process request. 'The schema version of 'package' is incompatible w | |
ith version 1.6.21205.9031 of NuGet. Please upgrade NuGet to the latest version | |
from http://go.microsoft.com/fwlink/?LinkId=213942.'. The remote server returne | |
d an error: (500) Internal Server Error.. |
This file contains hidden or 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
namespace SomeProject.Infrastructure.App.Services | |
{ | |
/// <summary> | |
/// Houses the queries against users in the database | |
/// </summary> | |
public class UserRepositoryService : BaseRepositoryService<User>, IUserRepositoryService | |
{ | |
private readonly IDateTimeService _dateTimeService; | |
/// <summary> |
This file contains hidden or 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
/* | |
* Scripts to remove data you don't need here | |
*/ | |
/* | |
* Now let's clean that DB up! | |
*/ | |
DECLARE @DBName VarChar(25) |
This file contains hidden or 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 WebProject.Domain; | |
using WebProject.Infrastructure.App.Services; | |
using WebProject.Web.Models; | |
namespace WebProject.Web.Controllers | |
{ | |
public class SomeController : BaseController<SomeModel, SomeDomain> | |
{ |
This file contains hidden or 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
$exe = 'git'; | |
if($exe.EndsWith('.exe') -or $exe.EndsWith('.bat')) { $exe = $exe.Substring(0, $exe.Length - 4)}; (ls env:\path).Value.split(';') | %{ if( test-path "$_\$exe.exe" ) { ls "$_\$exe.exe" }; if( test-path "$_\$exe.bat" ) { ls "$_\$exe.bat" }; } | %{ if($_.FullName.EndsWith('.exe') -or $_.FullName.EndsWith('.bat')) { $_.FullName } } |
This file contains hidden or 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
public static class EnumerationExtensions | |
{ | |
public static IEnumerable<SelectListItem> GetEnumerationItems(this Enum enumeration) | |
{ | |
var listItems = Enum | |
.GetValues(enumeration.GetType()) | |
.OfType<Enum>() | |
.Select(e => | |
new SelectListItem() | |
{ |
This file contains hidden or 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 -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))"; |
This file contains hidden or 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
windows updates | |
msmq | |
visual studio | |
beyond compare | |
.gitconfig | |
.bash_profile | |
erlang->rabbitmq? |
This file contains hidden or 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
// one way mapping shown for clarity sake and lots of ForMember() relationships removed | |
public class AutoMapperProfileWeb : Profile | |
{ | |
public override string ProfileName | |
{ | |
get { return "SomeApp.Web"; } | |
} | |
protected override void Configure() |
This file contains hidden or 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
Automated Testing, but Like for PowerShell | |
========================================== | |
PS \> Invoke-TestThisShiz.ps1 | |
So you say automated testing is important? | |
And you are kind of digging the awesome power of PowerShell | |
and want to learn more? What if there was some way to really test | |
PowerShell scripts in a behavior driven way? We'll explore the | |
concepts of automated testing (unit, integration, etc) and how |