$ENV:PATH+=":$HOME/x16/x16-emulator" # x16 Emulator
$ENV:PATH+=":$HOME/src/x16-demo/tools" # x16 python tools
}
+
# alias renumber $HOME/src/x16-demo/
-$env:Journal = "~\Journal\2021" # allows cd $env:journal
+$env:Journal = "~\Journal\2022" # allows cd $env:journal
$env:minion = "$env:src\minion"
# Import some home grown PowerShell modules, if they are installed.
# Tell my scripts which GitHub repositories to look in.
$env:GITHUB_USERNAME = 'edthedev'
-$env:GITHUB_ORG = 'techservicesillinois'
-$env:GITHUB_ORGS = @('techservicesillinois', 'uillinois-community')
$env:GITHUB_REPOS = @(
'techservicesillinois/SecOps-Tools',
'techservicesillinois/secdev-job-aids',
'techservicesillinois/awscli-login',
'techservicesillinois/farmit',
- 'uillinois-community/uillinois-community.github.io'
-)
+ 'uillinois-community/uillinois-community.github.io',
+ 'techservicesillinois/SecOps-Powershell-CSOC'
+) -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\2022"
+# New-Alias todo todolist
# Nice for git
New-Alias ol Get-GitLog
# 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
+}
\ No newline at end of file
--- /dev/null
+{
+ "ERROR": {
+ "scope": "markdown",
+ "prefix": "ascii_error",
+ "body": [
+ " ___ _ __ _ __ ___ _ __ ",
+ " / _ \\ '__| '__/ _ \\| '__|",
+ "| __/ | | | | (_) | | ",
+ " \\___|_| |_| \\___/|_| "
+ ],
+ "description": "Insert ASCII Error"
+ },
+ "GitHub Inbox": {
+ "scope": "markdown",
+ "prefix": "github",
+ "body": [
+ "https://github.com/notifications?query=is%3Aunread"
+ ],
+ "description": "Insert Link to GitHub inbox"
+ },
+ "SWOT": {
+ "scope": "markdown",
+ "prefix": "ascii_swot",
+ "body": [
+ "## SWOT",
+ "",
+ "### Internal",
+ "",
+ "**Strengths**",
+ "",
+ "**Weaknesses**",
+ "",
+ "### External",
+ "",
+ "**Opportunities**",
+ "",
+ "**Threats**"],
+ "description": "Insert SWOT"
+ },
+ "Service Pyriamid": {
+ "scope": "markdown",
+ "prefix": "ascii_pyriamid",
+ "body": [
+"```",
+" /\\ PEAK SERVICE",
+" / ",
+" /",
+" / ENHANCED SERVICE",
+" / ",
+" / ",
+" /",
+" / BASIC SERVICE",
+" / ",
+"/ ",
+"```",
+ ],
+ "description": "Insert Service Level Pyriamid"
+ },
+ "Shrug Emojii": {
+ "scope": "markdown",
+ "prefix": "ascii_shrug",
+ "body": [
+ "¯\\_(ツ)_/¯"
+ ],
+ "description": "ASCII Shrug"
+ }
+
+
+}
\ No newline at end of file
--- /dev/null
+{
+ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
+ "blocks": [
+ {
+ "type": "prompt",
+ "alignment": "left",
+ "segments": [
+ {
+ "type": "session",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "prefix": "<#CB4B16>┏[</>",
+ "postfix": "<#CB4B16>]</>",
+ "template": "{{ .UserName }}"
+ }
+ },
+ {
+ "type": "python",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "prefix": "<#CB4B16>[</>",
+ "postfix": "<#CB4B16>]</>",
+ "template": " Py {{ .Full }} "
+ }
+ },
+ {
+ "type": "git",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "prefix": "<#CB4B16>[</>",
+ "postfix": "<#CB4B16>]</>",
+ "template": "{{ .HEAD }}"
+ }
+ },
+ {
+ "type": "root",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "prefix": "<#CB4B16>[</>",
+ "postfix": "<#CB4B16>]</>"
+ }
+ },
+ {
+ "type": "exit",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "template": "{{ .Text }}",
+ "prefix": "<#CB4B16>[x</>",
+ "postfix": "<#CB4B16>]</>"
+ }
+ }
+ ]
+ },
+ {
+ "type": "prompt",
+ "alignment": "left",
+ "newline": true,
+ "segments": [
+ {
+ "type": "path",
+ "style": "plain",
+ "foreground": "#ffffff",
+ "properties": {
+ "style": "full",
+ "prefix": "<#CB4B16>┖[</>",
+ "postfix": "<#CB4B16>]></>"
+ }
+ }
+ ]
+ }
+ ],
+ "final_space": true
+}
function Show-MyDashBoard() {
+ Write-Host ""
Write-Host "## Todo items for today:"
Measure-JournalTodos
chart
Get-JournalTodayTodos
+ Write-Host ""
Write-Host "## Agenda for today:"
Get-JournalAgenda
+ Write-Host ""
Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
- Show-AgileMine -DaysAgo 6
- Write-Host "## GitHub Issues with no milestone. (Show-AgileNoMilestone)"
- Get-AgileNoMilestone -repository SecOps-Tools | Measure-Object -Property updated_at -Min -Max
+ Show-AgileMine
+ # Show-AgileMine -DaysAgo 6
+ Write-Host ""
+ Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)"
+ Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)"
+ $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' }
+ $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
+ Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
+ # $orphans_count = ($orphans | Measure-Object -Property updated_at -Min -Max).Count
+ # $orphans | Measure-Object -Property updated_at -Min -Max
+ Write-Host ""
Write-Host "Use command 'todo' to list more tasks."
Write-Host "Use command 'chart' to show todo item progress."
Write-Host "Use command 'agenda' to list the plan for today."
# Pick ye olde shell.
# shell /bin/zsh
-if [ -d /opt/powershell ]; then
- shell /opt/powershell/pwsh
-fi
+# if [ -d /opt/powershell ]; then
+# shell /opt/powershell/pwsh
+#else
+# shell /bin/bash
+#fi
+
+shell -$SHELL
See `/install` for scripts to install a favorite software tool.\r
\r
You typically want to run these scripts without elevation - **as your preferred login user**.\r
+\r
+## Windows Tips\r
+\r
+You want a font installed and configured for Windows Terminal ending in PL to make nice powerline features work.\r
--- /dev/null
+Install-Module oh-my-posh -Scope CurrentUser
+Update-Module oh-my-posh
\ No newline at end of file
--- /dev/null
+sudo ln -s wsl.conf /etc/wsl.conf
" Plug NLKNguyen/papercolor-theme
"
"
-Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
+" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
--- /dev/null
+[interop]
+appendWindowsPath = false