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
Program: Starting Squirrel Updater: --install . | |
Program: Starting install, writing to C:\Users\Chad\AppData\Local\SquirrelTemp | |
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Chad\AppData\Local\atom\packages\RELEASES'. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) | |
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) | |
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile) | |
at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__28.MoveNext() | |
CheckForUpdateImpl: Reading RELEASES file from C:\Users\Chad\AppData\Local\SquirrelTemp | |
CheckForUpdateImp |
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
# 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 | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC |
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
var gulp = require('gulp'); | |
var bower = require('gulp-bower'); | |
var less = require('gulp-less'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var aspnetk = require("gulp-aspnet-k"); | |
gulp.task('bower', function() { | |
return bower() | |
.pipe(gulp.dest('wwwroot/lib/')) | |
}); |
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 class HumanizerMetadataProvider : DataAnnotationsModelMetadataProvider | |
{ | |
protected override ModelMetadata CreateMetadata( | |
IEnumerable<Attribute> attributes, | |
Type containerType, | |
Func<object> modelAccessor, | |
Type modelType, | |
string propertyName) | |
{ | |
var propertyAttributes = attributes.ToList(); |
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
$csv = Import-Csv .\redirects.csv -Header "Orig", "Dest" | |
$csv | % { | |
"<add key=""$($_.Orig)"" value=""$($_.Dest)"" />" | |
} | clip |
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
$machines = get-content "machinescsv.txt" #assumes machine names are each on a new line | |
$fileToLogTo = "logOfIIS.txt" #this is where we'll log machines that respond | |
set-content $fileToLogTo $null #reset the contents of the file to nothing | |
$machines | ForEach-Object { #for each machine that we have | |
$socket = (new-object Net.Sockets.TcpClient) #reach into .net and make a TcpClient |
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 class DependencyConfig | |
{ | |
public static void RegisterDependencies(HttpConfiguration httpConfiguration) | |
{ | |
var container = new SimpleInjector.Container(); | |
System.Web.Mvc.DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(container)); |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace XXX | |
{ | |
public class AsyncHelper | |
{ |
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; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Security.Principal; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using Moq; |