- You are the Product Shirt
- Civilization Cheat Sheet
- Programming in a Nutshell
- Tinkerer's Rules
- Dogs are Good shirt
- https://store.xkcd.com/collections/everything/products/xkcd-tie
- Stormlight Archive Symbol
- http://store.brandonsanderson.com/bridge-4-glyph-decal/
- http://store.brandonsanderson.com/cosmere-decal/
- Bridge 4 Patch
This file contains hidden or 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
| function ConvertTo-OrderedDictionary | |
| { | |
| #requires -Version 2.0 | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory = $true, ValueFromPipeline = $true)] | |
| [hashtable] | |
| $InputObject, |
This file contains hidden or 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
| function ConvertTo-PSON { | |
| <# | |
| .SYNOPSIS | |
| Generates a PowerShell object-notation in the style of a PSD1 document | |
| .DESCRIPTION | |
| This stringifies a PowerShell object following the style of a PSD1 document, the powerShell-equivalent of JSON. The behavior is incomplete but works fine for simple objects. | |
| .EXAMPLE | |
| $array=@() | |
| $array+=Get-Process wi* | Select-Object Handles,NPM,PM,WS,VM,CPU,Id,ProcessName | |
| ConvertTo-PSON $array |
This file contains hidden or 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
| function Show-CommandGUI($command){ | |
| $hlpIcon='AAABAAQAAAAAAAEAIADd9wAARgAAADAwAAABACAAqCUAACP4AAAgIAAAAQAgAKgQAADLHQEAEBAAAAEAIABoBAAAcy4BAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAIABJREFUeJzsvXecXdddL/pdu5w6c870XtRGlmx1y7JsSZblKhcgtoNDkkc8GhECjyTweHk8eBcCF8IH7qNcIPddPsB7PB7EiWMnJiYKsePkYrnJVYqtPiojjTSj6WdOL7us98feq+1zRpZ707JHZ5fV1+/3/ZVVNnA5XA6Xw+VwOVwOl8PHL5D3uwKXw5sLu4eGEgDaALQCaKaUNgNoBJD0/+oB1BFCogCiAMIAQgAMAJqfjQvABlABUAZQpJQWAeQAZCmlGULIPIAUgDnXdecATNm2PfWNBx9Mv0dNvRzeg3AZAD6AYffQEAHQD6CPUtoLoAdANyGks76+vretrZ22trbqiWRDuK6uLhKLxqOGqYcN3Qzpuh4CIQZ1qQ5QQiklrksJpRSEAC4FAApN0wAKClBKNI2CUsel1HZdp+LYTqVSLpeLpWIpl8+X0vOpyszMjDU7O6Nls5lzAC5QSscAnKeUnnccZ/Tw4cNn9h84QAHQ963jLoc3HS4DwAcg7B4aWgJgGaV0GSFkMYCl/f2LOvv6+s22tra6RCKZiEQidYZhRDSNmLpuIBQKwTAMmKYOwzBgGAY0TYeuazAMHZqmQdM0EKJB0wgIUYfadV1QSuG4LlzHheM4cBwHtu3AcWxUKhYsy4ZtWyiXKyiXK7BtB5S6luM4xXK5nMtk09mZ6en82Nh569y50QuU0tMATlNKT7mue/Kf/+VfTvnFXQaFD2i4DADvQ9g9NHQlgBWU0isBXLF02cCypYuXRNs7O5N1dfUN4VC4LhwyjVA4hHA4hFAoBNM0EQ6FoGkaKpaFSqUCy2aMasG2LFQsG7Zlw7 |
This file contains hidden or 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
| Configuration UpdateAndScheduleReboot{ | |
| Param( | |
| [string]$NodeName='localhost', | |
| [datetime]$TargetRebootTime | |
| ) | |
| Import-DscResource –ModuleName ’PSDesiredStateConfiguration’ | |
| Import-DSCResource -ModuleName xPendingReboot | |
| Import-DSCResource -ModuleName xWindowsUpdate |
This file contains hidden or 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Testing</Title> | |
| <style type="text/css"> | |
| * { | |
| margin: 0; | |
| } | |
| html { |
This file contains hidden or 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
| function Get-ADGroupMembership { | |
| Param( | |
| [Parameter( | |
| Position = 0, | |
| Mandatory = $true, | |
| ValueFromPipelineByPropertyName = $true | |
| )] | |
| [Alias('UserName','UN')] | |
| [String] | |
| $User |
This file contains hidden or 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
| #Lookup Notmatch | |
| $Event = @{ | |
| [int64]12 = "Boot" | |
| 13 = "Shutdown" | |
| } | |
| @($event[[int64]12],$event[12],$event[13],$event[[int64]13]) | % { Write-Output "Result: $_" } | |
| #Can and Can't Be Defined |
This file contains hidden or 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
| Import-Module Get-ChildItemColor | |
| if ( -not $env:ConEmuPID ) { | |
| function global:prompt { | |
| -join($( | |
| if (test-isadmin) {"λ "}),"$($env:username.ToUpper()) ►► ") | |
| } | |
| } | |
| else { | |
| $ColorSuffix = 'm' |
This file contains hidden or 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
| #Option A | |
| #run this only the first time | |
| Get-PSCredential | Export-Clixml -Path $env:USERPROFILE\TheseCreds.xml | |
| Get-PSCredential | Export-Clixml -Path $env:USERPROFILE\FTPCreds.xml | |
| #leave this in | |
| $cred = Import-Clixml -Path $env:USERPROFILE\TheseCreds.xml | |
| $FTPCreds = Import-Clixml -Path $env:USERPROFILE\FTPCreds.xml |