This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"meta": { | |
"version": "v1.0.0", | |
"canonical": "https://github.com/jsonresume/resume-schema/blob/v1.0.0/schema.json", | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Bryan Dady", | |
"label": "Engineering Manager at Subsplash", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | Hex | Red | Green | Blue | RGB | |
---|---|---|---|---|---|---|
alice blue,AliceBlue | #f2f9ff | 242 | 249 | 255 | {62194, 63993, 65535} | |
antique white,AntiqueWhite | #fbeede | 251 | 238 | 222 | {64507, 61166, 57054} | |
AntiqueWhite1 | #fff1e1 | 255 | 241 | 225 | {65535, 61937, 57825} | |
AntiqueWhite2 | #f1e5d5 | 241 | 229 | 213 | {61937, 58853, 54741} | |
AntiqueWhite3 | #d6cbbd | 214 | 203 | 189 | {54998, 52171, 48573} | |
AntiqueWhite4 | #9c958a | 156 | 149 | 138 | {40092, 38293, 35466} | |
aquamarine,Aquamarine | #8dfcdc | 141 | 252 | 220 | {36237, 64764, 56540} | |
aquamarine2 | #84eed0 | 132 | 238 | 208 | {33924, 61166, 53456} | |
aquamarine4 | #549b87 | 84 | 155 | 135 | {21588, 39835, 34695} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enumerate files (full path) that have a matching string found within | |
# In this example, only PowerShell files (*.ps*1) are being searched for the simple wildcard string 'servicegroup' | |
PS .\> gci -Path .\ -Filter *.ps*1 -Recurse -File | Select-String -SimpleMatch servicegroup | group -Property Path | select -ExpandProperty Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"{0:N2}" -f ((Get-ChildItem C:\Drivers -recurse | Measure-Object -property length -sum).sum / 1GB) + " GB" | |
# re: https://technet.microsoft.com/en-us/library/ff730945.aspx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you'd like to set this properly in the Registry via cmd/bat, or PowerShell, be sure to specify the key is in HLKM, not HKCU. | |
Get-Item HKCU:\Software\Microsoft\ServerManager may succeed, but the other 2 fail if aimed at the Current_User hive. | |
Presuming what you'd like is for ServerManager to NOT auto open at logon, the following 1-liner (PowerShell) will test if the registry value should be updated, and then update the proper key/value: | |
if ((Get-ItemProperty -Path HKLM:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon).DoNotOpenServerManagerAtLogon -ne 0) { New-ItemProperty -Path HKLM:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value '0x1' –Force } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MyAcctGroups = Get-WmiObject -Query "ASSOCIATORS OF {Win32_Account.Name='$env:username',Domain='$env:USERDOMAIN'} WHERE ResultRole=GroupComponent REsultClass=Win32_Account" | |
$MyAcctGroups | Get-Member | |
$MyAcctGroups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Private:WinRMListener = & winrm e winrm/config/listener; foreach ($line in $Private:WinRMLTokens = $WinRMListener -split '\n') { $Private:lineTokens = $line -split '=';if ($lineTokens[0] -like '*Source*') { $Private:source = $($lineTokens[1]).trim().replace('"','').replace(']','') }; if ($lineTokens[0] -like '*Transport*') { $Private:Transport = $($lineTokens[1]).trim() }; if ($lineTokens[0] -like '*Port*') { $Private:Port = $($lineTokens[1]).trim() }; if ($lineTokens[0] -like '*Enabled*') { $Private:Enabled = $($lineTokens[1]).trim() }; if ($lineTokens[0] -like '*ListeningOn*') { $Private:ListeningOn = $(($lineTokens[1] -split ',')[0]).trim() } }; $Private:properties = [ordered]@{ 'Source' = $source; 'Transport' = $Transport; 'Port' = $Port; 'Enabled' = $Enabled; 'ListeningIP' = $ListeningOn }; $Private:WinRMListenerInfo = New-Object -TypeName PSObject -Property $properties; $WinRMListenerInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$driveIndex = 1 | |
$env:PSModulePath -split ';' | Sort-Object | foreach { New-PSDrive -Name "PSMods$driveIndex" -PSProvider filesystem -Root $PSItem; $driveIndex++ } | |
Get-PSDrive -PSProvider FileSystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -Recurse is optional | |
Get-ChildItem -Path $env:USERPROFILE\Downloads -Recurse | Group-Object -Property Extension | sort -Descending -Property Count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://rosettacode.org/wiki/Repeat_a_string#PowerShell |
NewerOlder