]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/ts/tasks.py
Use env
[dotfiles.git] / files / ts / tasks.py
index 6e47ddbaf3e9bcfb4dd9c22e9c8bd73a84069afc..dc28db1282fda79b5ddb92a5b954239157e23071 100644 (file)
@@ -17,6 +17,7 @@ SECDEV_LIMITED=os.environ.get('SECDEV_LIMITED')
 SECDEV_MESSAGE_TEMPLATES=os.environ.get('SECDEV_MESSAGE_TEMPLATES')
 EPICS=os.environ.get('URL_EPICS')
 MESSAGE_TEMPLATES=os.environ.get('URL_MESSAGE_TEMPLATES')
+OLLAMA=os.environ.get('OLLAMA')
 
 # Helper functions for a consistent experience
 
@@ -30,7 +31,8 @@ def browse(c, url):
 
 
 def code(c, path):
-    c.run(f"codium {path}", asynchronous=True)
+    # c.run(f"codium {path}", asynchronous=True)
+    c.run(f"vi {path}", pty=True)
 
 
 def folder(c, path):
@@ -58,6 +60,7 @@ def vasl(c):
     '''Submit time off'''
     browse(c, "https://my.techservices.illinois.edu/vacation/submitdays.asp")
     browse(c, "https://outlook.office.com/calendar/view/week")
+    print('Ctrl+G to repeat a search in FF')
 
 
 @task(vasl)
@@ -65,8 +68,9 @@ def timesheets(c):
     '''Reconcile time off between reporting systems'''
     browse(c, "https://outlook.office.com/calendar/view/month")
     code(c, f"{HOME}/src/Learn_RobotFramework_IllinoisPTR")
+    browse(c, "http://go.illinois.edu/techservtimeentry")
 
-@task(journal)
+@task()
 def daily(c):
     '''Open daily reminders file for this month'''
     code(c, f'{JOURNAL}/{MONTH}-daily.md')
@@ -158,3 +162,8 @@ def bookmarks(c):
 def message_templates(c):
     browse(c, MESSAGE_TEMPLATES)
 
+@task
+def ollama(c):
+    print(f'ssh -t {OLLAMA} "ollama run glm-4.7-flash"')
+
+