Instantly share code, notes, and snippets.

View ToArrayVsToList.cs
namespace ToArrayVsToList
{
using System;
using System.Linq;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
[MemoryDiagnoser]
public class ToArrayVsToList
View git merge develop to master
git checkout master
git merge develop
git push -u origin master
View Set-ScreenResolution.ps1
param (
[Parameter(Mandatory=$true,
Position = 0)]
[int]
$Width,
[Parameter(Mandatory=$true,
Position = 1)]
[int]
View sxstrace.ps1
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "You do not have Administrator rights to run this script!`nPlease re-run this script as an Administrator!"
break
}
$logfile = (Join-Path $env:temp sxstrace.log)
$outfile = (Join-Path $env:temp sxstrace.txt)
Write-Output "Starting sxstrace utility..."
View boxstarter_private_dev
#region Windows settings
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
Disable-InternetExplorerESC
#endregion
#region Windows updates
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula