I hereby claim:
- I am mwjcomputing on github.
- I am mwjcomputing (https://keybase.io/mwjcomputing) on keybase.
- I have a public key ASDjbB9syjr0bJDeZecBVrhgEp4X90o9cJzEBq-UA5UuNgo
To claim this, I am signing this object:
| function Get-PublicIP { | |
| param ( | |
| [Parameter(HelpMessage='Return IPv6 info if available.')] | |
| [switch] $ipV6 | |
| ) | |
| if ($ipV6) | |
| { | |
| $ipifyURL = 'https://api64.ipify.org' | |
| } |
| function New-MTail { | |
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string]$File, | |
| [Parameter(Mandatory = $true)] | |
| [string]$SearchTerm | |
| ) | |
| Get-Content -Path $File -tail 100 -wait | Select-String $SearchTerm |
| function Set-WindowsTheme { | |
| param ( | |
| [ValidateSet("light","dark")] | |
| [Parameter(Mandatory=$true)] | |
| [string] $Mode | |
| ) | |
| if ('dark' -eq $Mode) { | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force |
I hereby claim:
To claim this, I am signing this object:
| # ================================================== | |
| # = FileName: daysTillConverge2020.ps1 | |
| # = Author: Matt Johnson (@mwjcomputing) | |
| # = Description: Calculates days until Converge 2020 | |
| # ================================================== | |
| # Set start of Converge 2020 date and time | |
| $ConvergeDate = Get-Date -Year 2020 -Month 5 -Day 14 -Hour 8 -Minute 0 | |
| # Get current date and time | |
| $Today = Get-Date |
| # ================================================== | |
| # = FileName: daysTillConverge2020.py | |
| # = Author: Matt Johnson (@mwjcomputing) | |
| # = Description: Calculates days until Converge 2020 | |
| # ================================================== | |
| # Import datetime module | |
| import datetime | |
| # Set start of Converge 2020 date and time |
| // ================================================== | |
| // = FileName: daysTillConverge2020.go | |
| // = Author: Matt Johnson (@mwjcomputing) | |
| // = Description: Calculates days until Converge 2020 | |
| // ================================================== | |
| package main | |
| import ( | |
| "fmt" |
| function Copy-VSCodeUserSnippets { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory=$true, HelpMessage="Enter the destination address")] | |
| [String] $Destination | |
| ) | |
| # Global Variables | |
| $SnippetFolder = "C:\Users\$ENV:Username\AppData\Roaming\Code\User\snippets\" |
| $Computer = 'localhost' | |
| Get-EventLog -ComputerName $Computer System -Source Microsoft-Windows-Winlogon | select $UserProperty,$TypeProperty,$TimeProeprty |
| function Test-IPv4Address { | |
| [CmdletBinding()] | |
| param( | |
| [parameter(Mandatory=$true, ValueFromPipeline=$true, HelpMessage='Enter data to validate as IP Address.')] | |
| [alias('IPAddress')] | |
| [string]$IP | |
| ) | |
| begin{} | |
| process{ |