-#requires -version 5.1
-#ConvertTo-ASCIIArt.ps1
-
-<#
-font list at https://artii.herokuapp.com/fonts_list
-font names are case-sensitive
-
-invoke-restmethod https://artii.herokuapp.com/fonts_list
-
-#>
-
-<#
-.SYNOPSIS
-Output strings as ASCII art fonts.
-
-.EXAMPLE
-cart "Testing"-Font cursive
-
-.NOTES
-From https://jdhitsolutions.com/blog/powershell/7278/friday-fun-powershell-ascii-art/
-#>
-Function ConvertTo-ASCIIArt {
- [cmdletbinding()]
- [alias("cart")]
- [outputtype([System.String])]
- Param(
- [Parameter(Position = 0, Mandatory, HelpMessage = "Enter a short string of text to convert", ValueFromPipeline)]
- [ValidateNotNullOrEmpty()]
- [string]$Text,
- [Parameter(Position = 1,HelpMessage = "Specify a font from https://artii.herokuapp.com/fonts_list. Font names are case-sensitive")]
- [ValidateNotNullOrEmpty()]
- [string]$Font = "big"
- )
-
- Begin {
- Write-Verbose "[$((Get-Date).TimeofDay) BEGIN] Starting $($myinvocation.mycommand)"
- } #begin
-
- Process {
- Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Processing $text with font $Font"
- $testEncode = [uri]::EscapeDataString($Text)
- $url = "http://artii.herokuapp.com/make?text=$testEncode&font=$Font"
- Try {
- Invoke-Restmethod -Uri $url -DisableKeepAlive -ErrorAction Stop
- }
- Catch {
- Throw $_
- }
- } #process
- End {
- Write-Verbose "[$((Get-Date).TimeofDay) END ] Ending $($myinvocation.mycommand)"
- } #end
-}
\ No newline at end of file
+# Tell my scripts which GitHub repositories to look in.
+$env:GITHUB_USERNAME = 'edthedev'
+$env:GITHUB_REPOS = @(
+ 'techservicesillinois/SecOps-Tools',
+ 'techservicesillinois/secdev-job-aids',
+ 'techservicesillinois/awscli-login',
+ 'techservicesillinois/farmit',
+ 'uillinois-community/uillinois-community.github.io',
+ 'techservicesillinois/SecOps-Powershell-CSOC',
+ 'techservicesillinois/SecOps-Powershell-CISDSC',
+ 'techservicesillinois/secops-splunk-null-router'
+) -join ' '
+$ENV:TS_REPOS = $ENV:GITHUB_REPOS.split(' ') | Where { $_ -like 'techser*' }
+
+# Todo List
+$ENV:PATH+=";$env:src\todolist" # todo list utility edthedev\todolist
+$env:todolist = "C:\Users\delaport\Journal\"
+# New-Alias todo todolist
+
+# Nice for git
+New-Alias ol Get-GitLog
+New-Alias st Get-GitStatus
+
+# Dashboard
+New-Alias dash Show-MyDashboard # from dash.psm1
+New-Alias agenda Get-JournalAgenda # from minion_go.psm1
+
+function Invoke-FixWslVPN {
+ Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64"} | Set-NetIPInterface -InterfaceMetric 6000
+}