Skip to content

Instantly share code, notes, and snippets.

Bastian Schmidt batzen

Block or report user

Report or block batzen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ManagedCore_DllExport
// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.1055.0
// Copyright (c) Microsoft Corporation. All rights reserved.
// VTableFixup Directory:
// IMAGE_COR_VTABLEFIXUP[0]:
// RVA: 0x00004000
// Count: 0x0001
// Type: 0x000d
@batzen
batzen / ToArrayVsToList.cs
Last active Aug 26, 2018
[Benchmark] ToArrayVsToList
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]
@batzen
batzen / sxstrace.ps1
Last active Aug 29, 2015
Short PowerShell script to start sxstrace, stop sxstrace and open the resulting trace
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
You can’t perform that action at this time.