]> apps.delaporte.us Git - dotfiles.git/commitdiff
Add various daily helper functions
authorEdward <delaport@illinois.edu>
Fri, 23 Jan 2026 17:54:38 +0000 (11:54 -0600)
committerEdward <delaport@illinois.edu>
Fri, 23 Jan 2026 17:54:53 +0000 (11:54 -0600)
files/ts/tasks.py

index 015b6c544fa0a7e74ed7132b4f1402c7abe0ee74..e3c7756e358a6fda16e17f6529b70c37d080a654 100644 (file)
@@ -14,7 +14,8 @@ YEAR = dt.now().strftime('%Y')
 JOURNAL = f"{HOME}/Journal/{YEAR}"
 
 SECDEV_LIMITED=os.environ.get('SECDEV_LIMITED')
-
+SECDEV_MESSAGE_TEMPLATES=os.environ.get('SECDEV_MESSAGE_TEMPLATES')
+BOX_EPICS=os.environ.get('BOX_EPICS')
 
 # Helper functions for a consistent experience
 
@@ -46,6 +47,10 @@ def debug(c):
 def dash(c):
     c.run('wtfutil')
 
+@task
+def calendar_week(c):
+    browse(c, "https://outlook.office.com/calendar/view/week")
+
 
 @task
 def vasl(c):
@@ -76,6 +81,7 @@ def in_progress(c):
 @task(daily, in_progress, dash)
 def status(c):
     '''Check on status of priorities'''
+    browse(c, BOX_EPICS)
     pass
 
 
@@ -100,22 +106,22 @@ def retro(c):
     browse(c, 'https://github.com/orgs/techservicesillinois/projects/10/views/5')
 
     # Shared folder for archiving Retro notes
-    browse(c, f'{SECDEV_LIMITED}')
+    browse(c, SECDEV_LIMITED)
 
 
 @task(journal)
-def data(c):
+def engagements_ods(c):
     '''For recording engagements'''
-    c.run(f'soffice {JOURNAL}/Data/engagements.ods')
+    c.run(f'soffice {JOURNAL}/Data/engagements.ods', asynchronous=True)
     # TODO: Launch Jupyter container on this folder as well
 
 @task
-def gather-data(c):
+def gather_data(c):
     raise NotImplementedError()
     # TODO: Add GH command to gather latest data files.
 
 
-@task(data)
+@task(engagements_ods)
 def wins(c):
     '''For recording team wins'''
     code(c, f'{JOURNAL}/{YEAR}-Wins.md')
@@ -124,3 +130,26 @@ def wins(c):
 def co_authors(c):
     browse(c, 'https://github.com/orgs/techservicesillinois/projects/10?pane=info')
 
+@task
+def limited(c):
+    browse(c, SECDEV_LIMITED)
+
+@task(engagements_ods, calendar_week)
+def engage(c):
+    # Cybersecrity Development Message Templates
+    browse(c, SECDEV_MESSAGE_TEMPLATES)
+
+
+@task
+def juice_shop(c):
+    '''Run a copy of intentionally vulnerable OWASP Juice Shop web app, for demonstrations'''
+    c.run('podman run -d -p 3000:3000 bkimminich/juice-shop', asynchronous=True)
+    print('Visit localhost:3000 for juice shop.')
+
+
+@task
+def bookmarks(c):
+    code(c, f'{JOURNAL}/bookmarks.md')
+
+
+