X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/a2a690bd9c9901b004426240c384bbb40557d456..44b7848112bb32dd9b066ed640828ee7ca27bfeb:/files/tab/tasks.py?ds=sidebyside diff --git a/files/tab/tasks.py b/files/tab/tasks.py index 488e80f..105e59e 100644 --- a/files/tab/tasks.py +++ b/files/tab/tasks.py @@ -12,7 +12,7 @@ TODAY = dt.now().strftime('%Y.%m.%d') KIDS_ALLOWANCE_URL=os.environ.get('KIDS_ALLOWANCE_URL') def browse(c, url): - c.run(f"librefox {url}") + c.run(f"librefox {url}", asynchronous=True) def code(c, path): @@ -56,3 +56,15 @@ def screenshare(c): browse(c, 'https://app.screego.net/#/') c.run('dino') +@task() +def free_disk_space(c): + c.run('podman container cleanup --all --rm') + + +SCHOOL = f"{HOME}/School" + +@task +def assign_school(c): + c.run(f"cd {SCHOOL};{HOME}/envs/jupyter/bin/jupyter lab") + +