Skip to content

Instantly share code, notes, and snippets.

Avatar

Lloyd Holman lholman

View GitHub Profile
View corpBoxStarter
#http://boxstarter.org/package/nr/url?
choco install visualstudiocode
choco install pester
choco install poshgit
choco install keepass
View keybase.md

Keybase proof

I hereby claim:

  • I am lholman on github.
  • I am lloydholman (https://keybase.io/lloydholman) on keybase.
  • I have a public key ASA5EOBDmwxkBk_2RCPnBCA3uXvHjFXdlRlEV3aykkVjFQo

To claim this, I am signing this object:

View Pipeline2017.md

Talk Title

Talk Synopsis (300 chars)

Audience Level (All, Beginner, Intermediate, Expert

Public Abstract (2000 chars)

Description (2000 chars)

View Disable Hyper-V without uninstall
bcdedit /set hypervisorlaunchtype off
#bcdedit /set hypervisorlaunchtype auto
View gist:4121d852581557a863bb
$dscProcessID = Get-WmiObject msft_providers | Where-Object {$_.provider -like 'dsccore'} | Select-Object -ExpandProperty HostProcessIdentifier
Get-Process -Id $dscProcessID | Stop-Process
Get-WmiObject msft_providers | Select-Object -Property Provider, HostProcessIdentifier
#Often we see that the Provider 'WMIEventProv' is left locking files too
@lholman
lholman / getAllFilesByExtensionAndPathName.ps1
Last active Sep 17, 2015
getAllFilesByExtensionAndPathName
View getAllFilesByExtensionAndPathName.ps1
Get-ChildItem -path "C:\Development" -Filter "*.xslt" -Recurse | Where { $_.FullName -like "*Mainline*Environment*"} | ForEach-Object {Start notepad++ $_.FullName}
View compareServerTimes.ps1
#Taken from original article here: http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/05/use-powershell-to-easily-compare-the-time-between-two-computers.aspx
#Compare time on two servers using TimeSpan
new-timespan -Start (icm 192.168.1.1 {get-date}) -end (icm 192.168.1.2 {get-date})
#Compare time on two servers using invoke-command
invoke-command -ComputerName192.168.1.1 -ScriptBlock {get-date} | Format-List * ; invoke-command -ComputerName 192.168.1.2 -ScriptBlock {get-date} | Format-List *
View gist:b2e66adecbe397dd7397
Get-ChildItem -path D:\TeamCity\system\artifacts -Filter "bla*" | Where {$_.PSIsContainer -eq $true} | ForEach-Object {$_.FullName} | Get-FolderSize
#https://gallery.technet.microsoft.com/scriptcenter/Get-FolderSize-b3d317f5
@lholman
lholman / installJekyllOnWindows.ps1
Last active Aug 29, 2015
installJekyllOnWindows
View installJekyllOnWindows.ps1
#Original instructions courtesy of 'Run Jekyll on Windows' http://jekyll-windows.juthilo.com/ and https://gist.github.com/luislavena/f064211759ee0f806c88
#Install Ruby and Ruby.DevKit using BoxStarter and Chocolatey
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/lholman/f6f789cfd1dc994fd707/raw/fadb7634f275ee8f6486b60bb36c49326457d081/developerWindowsBoxStarterScript.txt
#Config Ruby and Ruby.DevKit
cd c:\tools\DevKit
ruby dk.rb init
Add-Content .\config.yml "`n- C:/tools/DevKit"
runy dk.rb install
@lholman
lholman / developerWindowsBoxStarterScript.txt
Last active Jul 27, 2017
Developer Windows BoxStarter Script
View developerWindowsBoxStarterScript.txt
#http://boxstarter.org/package/nr/url?
choco install git
choco install visualstudiocode
choco install pester
choco install poshgit
choco install googlechrome
choco install powershell