]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Merge branch 'main' of github.com:edthedev/dotfiles into main
authorEdTheDev <edward@delaporte.us>
Sun, 19 Nov 2023 03:08:31 +0000 (21:08 -0600)
committerEdTheDev <edward@delaporte.us>
Sun, 19 Nov 2023 03:08:31 +0000 (21:08 -0600)
doc/cli.md [new file with mode: 0644]
doc/shortcuts.md
files/Microsoft.PowerShell_profile.ps1
psmodules/dash.psm1
win/setup/minion.ps1 [deleted file]

diff --git a/doc/cli.md b/doc/cli.md
new file mode 100644 (file)
index 0000000..6f9d3f9
--- /dev/null
@@ -0,0 +1,19 @@
+
+## Install my CLI utilities
+
+1. Install [GoLang][19]
+
+[19]: https://go.dev/doc/install
+
+1. Install utilities:
+
+       ```
+       echo "Installing todo finder."
+       go install github.com/edthedev/todolist@latest
+
+       echo "Installing CLI line chart."
+       go install github.com/edthedev/chart@latest
+
+       echo "Installing CLI agenda finder."
+       go install github.com/edthedev/agenda@latest
+       ```
\ No newline at end of file
index 1aa87d9a1bc3b387a1cb4e8de2865aad468f12f7..3db236026dbd434a18983359a65affc9d4e5e2b0 100644 (file)
@@ -28,7 +28,6 @@ I have a bit of JavaScript in the HTML file I use for my homepage. It causes the
 
 ```html
 <!-- Script to jump to links on keypresses 1 through 6 -->
-<script src="./jquery-3.7.0.min.js"></script>
 <script>
        watch_keys = ['1','2','3','4','5','6'];
        locations = [
@@ -39,13 +38,13 @@ I have a bit of JavaScript in the HTML file I use for my homepage. It causes the
                'link here...',
                'link here...',
        ];
-  $(document).on("keyup", function (e) {
+  document.onkeypress = function (e) {
     if(e.key in watch_keys)
-               window.location = locations[parseInt(e.key)-1]
+      window.location = locations[parseInt(e.key)-1]
     else {
       console.log(e);
     }
-});
+  }
 </script>
 ```
 
index 742accade523759989298bc29848e2fe7434a264..04d9c45c1fc10a753e81db3f29a8b25c1d8916a1 100644 (file)
@@ -31,3 +31,9 @@ Import-Module "$env:psmodules\fix_vpn.psm1"
 
 # Let's face it, I'm about to cd into my source directory
 if((Get-Location).Path -eq $HOME){ cd $env:src }
+
+function Get-JournalAgenda() {
+    # Write-Host "Reading from $HOME\Journal\{YYYY}\{MM}-{DD}.md"
+    agenda.exe -path "$HOME\Journal\{YYYY}\{MM}-{DD}.md"
+}
+New-Alias today Get-JournalAgenda
index 043a4098d70157f43be57b1017ea60ac519d535f..874fc0e0b67eed7b6965d0ef48804a20af755743 100644 (file)
@@ -1,25 +1,26 @@
+function Get-JournalAgenda() {
+    agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md"
+}
 
 function Show-MyDashBoard() {
        Write-Host ""
        Write-Host "## Todo items for today:"
-       Measure-JournalTodos
+       # Measure-JournalTodos
        chart
-       Get-JournalTodayTodos
+       # Get-JournalTodayTodos
        Write-Host ""
        Write-Host "## Agenda for today:"
        Get-JournalAgenda
        Write-Host ""
        Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
        # Show-AgileMine
-       Show-AgileMine -DaysAgo 6
+       # 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
+    # $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
+       # Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
        Write-Host ""
        Write-Host "Use command 'todo' to list more tasks."
        Write-Host "Use command 'chart' to show todo item progress."
diff --git a/win/setup/minion.ps1 b/win/setup/minion.ps1
deleted file mode 100644 (file)
index 089f380..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-cd c:\src
-git clone https://github.com/edthedev/minion.git
\ No newline at end of file