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
cinst googlechrome -y | |
cinst revo.uninstaller -y | |
cinst dropbox -y | |
cinst notepadplusplus -y | |
cinst spotify -y | |
cinst paint.net -y | |
cinst picasa -y | |
cinst foxitreader -y | |
cinst putty -y | |
cinst nodejs -y |
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
// SpecsFor MVC doesn't seem to pick up the correct MSBUILD to use | |
// when it tries to compile your web app to host in IIS express. | |
// If you add a reference in your Test project to "Microsoft.Build.Utilities.v12.0" | |
// you can then use the "ToolLocationHelper" to get the MSBUILD.exe for a VS version | |
string msBuild = ToolLocationHelper.GetPathToBuildToolsFile("msbuild.exe", "14.0"); // 14.0 hard coded for VS2015 | |
var config = new SpecsForMvcConfig(); | |
config.UseIISExpress() | |
.With(webProjectDirectory, solutionDirectory) |
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 ObjectCacheExtensionTests | |
{ | |
public class when_get_or_add_existing_when_key_doesnt_exist : SpecsFor<MemoryCache> | |
{ | |
private readonly string _expectedResult = "This is what should be returned"; | |
private readonly string _key = "myKey"; | |
private string Result { get; set; } | |
protected override void InitializeClassUnderTest() | |
{ |
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
git checkout master; git branch | sed -e '/master/d' -e 's/^/git branch -D /' | bash |
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
$targetDate = (Get-Date).ToString("yyyyMM01") | |
Write-Host "targetDate: $targetDate" | |
$wallpaperOutput = "$env:USERPROFILE\Pictures\wallpaper.jpg" | |
Write-Output "Downloading data feed..." | |
$wallpaperData = "http://www.bing.com/gallery/home/browsedata?z=0" | |
$json = (Invoke-WebRequest $wallpaperData -UseBasicParsing).Content | |
Write-Output "Parsing JSON..." |
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
$wallpaperOutput = "$env:USERPROFILE\Pictures\wallpaper.jpg" | |
Write-Output "Downloading data feed..." | |
$wallpaperData = "http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-GB" | |
$json = (Invoke-WebRequest $wallpaperData -UseBasicParsing) | ConvertFrom-Json | |
$wallpaperUrl = "http://www.bing.com" + $json.images.urlbase + "_1920x1080.jpg" | |
Write-Output "Generated wallpaper URL: $wallpaperUrl" |
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
choco install googlechrome -y | |
choco install firefox -y | |
choco install git -y | |
choco install github-desktop -y | |
choco install poshgit -y | |
choco install vscode -y | |
choco install notepadplusplus -y | |
choco install paint.net -y | |
choco install 7zip -y | |
choco install lastpass -y |