Skip to content

Instantly share code, notes, and snippets.

View bedecarroll's full-sized avatar

Bede Carroll bedecarroll

View GitHub Profile
@bedecarroll
bedecarroll / 1 VDEV
Created January 27, 2015 02:50
ZFS 1 VDEV layout
# zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/ ONLINE 0 0 0
@bedecarroll
bedecarroll / gist:7405639
Created November 11, 2013 00:02
Get the last WinSAT run values and present them like the old WEI page
Get-CimInstance Win32_WinSAT | Format-List @{Label="Base Score";Expression={$_.WinSPRLevel}},@{Label="Processor";Expression={$_.CPUScore}},@{Label="Memory (RAM)";Expression={$_.MemoryScore}},@{Label="Graphics";Expression={$_.GraphicsScore}},@{Label="Gaming graphics";Expression={$_.D3DScore}},@{Label="Primary hard disk";Expression={$_.DiskScore}}
@bedecarroll
bedecarroll / gist:7076589
Created October 20, 2013 23:26
Create PowerShell profile.
New-Item $profile -Force
notepad $profile
@bedecarroll
bedecarroll / gist:6950399
Created October 12, 2013 14:10
Attaching VMware Update Manager baselines to lots of datacentres.
Add-PSSnapin *vmware*
Connect-VIServer <your vCenter Server>
$baseline = Get-Baseline -Name "Vendor VIBs"
Get-Datacenter | Where-Object Name -notlike "<Insert name of exclusions here>" | % { Attach-Baseline -Baseline $baseline -Entity $_ }
Disconnect-VIServer