I hereby claim:
- I am nora-ballard on github.
- I am noraballard (https://keybase.io/noraballard) on keybase.
- I have a public key ASCTX0ZApmSzHBJZgpeA2v783DweuZaXBaSRWQUlBIVBuQo
To claim this, I am signing this object:
| // Material Palenight Color Scheme for Blink Shell | |
| // by Greg Gamel (https://github.com/ggamel) (https://greg.is) | |
| black = '#000000'; | |
| red = '#ff5370'; // red | |
| green = '#c3e88d'; // green | |
| yellow = '#ffcb6b'; // yellow | |
| blue = '#82aaff'; // blue | |
| magenta = '#c792ea'; // pink | |
| cyan = '#89ddff'; // cyan |
| set -g mouse on | |
| new-session -n $HOST |
I hereby claim:
To claim this, I am signing this object:
| [cmdletbinding()] | |
| param( | |
| [Parameter(Mandatory)] | |
| [Alias('ComputerName')] | |
| [string[]]$InputObject, | |
| [Parameter()] | |
| [int16]$Port = 16992, | |
| [Parameter(Mandatory)] |
List disks (OSX)
diskutil listSingle Drive
sudo dd if=~/test.img of=/dev/rdisk2 bs=1m| $here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") | |
| $Script = "$here\$sut" | |
| Describe "Nov2015ScriptGames" { | |
| Context "When the string is ',' deliminated" { | |
| $TestString = 'COMPUTER1,COMPUTER2,, COMPUTER3 , COMPUTER 4, COMPUTER5' | |
| $ActualOutput = & $Script -VMNameStr $TestString |
| function Enable-WindowsOSUpgrade { | |
| [CmdletBinding( | |
| SupportsShouldProcess = $true | |
| )] | |
| param( | |
| ) | |
| $Properties = @{ | |
| Path = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade' | |
| Name = 'AllowOSUpgrade' | |
| } |
| function Get-FlexLMUsage { | |
| param( | |
| [Parameter(Mandatory=$True)] | |
| [string]$LogFile | |
| ) | |
| $Log = Get-Content $LogFile -ErrorAction Stop | |
| $Log | ForEach-Object { | |
| if ($_ -match '.* TIMESTAMP (.*)') { | |
| $Date = $matches[1] |
| function Select-OnChange { | |
| param( | |
| [Parameter(Mandatory, ValueFromPipeline)] | |
| $InputObject, | |
| [Parameter()] | |
| $PropertyName | |
| ) | |
| PROCESS { |
| function Get-HPEnclosure { | |
| param( | |
| [Parameter(Mandatory,ValueFromPipeline)] | |
| [string]$ComputerName | |
| ) | |
| $URL = 'http://{0}/xmldata?item=All' -f $ComputerName | |
| $Result = [xml](Invoke-RestMethod -Uri $URL -Method Get) | |
| $Enclosure = [pscustomobject]@{ | |
| 'Name' = $Result.RIMP.INFRA2.ENCL |