#!/usr/bin/env /usr/bin/python3 from auto_everything.base import Python from auto_everything.terminal import Terminal py = Python() t = Terminal() class Open: def worklog(self): t.run(""" cd ~/work/worklog code . """) def this(self): t.run(""" xdg-open . """) py.fire(Open) py.make_it_global_runnable(executable_name="Open")
) def make(self): self.preprocessing() db = 21 minimum_interval = 1.7 skip = 1 source = os.path.abspath("./doing.mp4") target = os.path.abspath("./nosilence.mp4") video.remove_silence_parts_from_video( source, target, db, minimum_interval, skip_sharp_noise=skip ) def compress(self, folder): os.chdir(t.run_command("pwd")) path = os.path.abspath(folder) video.compress_videos_in_a_folder(path) def fix(self, folder): os.chdir(t.run_command("pwd")) path = os.path.abspath(folder) video.fix_corrupt_videos_in_a_folder(path) py.fire(Tools) py.make_it_global_runnable(executable_name="Video")
google-chrome "https://inkscape.org/doc/keys.html" & xdg-open {path} & inkscape """, wait=False) def pi(self): t.run(""" terminator -e "ssh [email protected]" """) def server(self, num=""): if num == "": t.run(""" terminator -e "ssh [email protected]" """) else: t.run(f""" Copy server_password {num} terminator -e "ssh [email protected].{num}" """) def android(self): t.run(""" cd ~/Android/Sdk/emulator/ ./emulator @Pixel_3a_API_30_x86 -no-snapshot-load """) py.fire(Mission) py.make_it_global_runnable(executable_name="Start")
#!/usr/bin/env /usr/bin/python3 from auto_everything.base import Python from auto_everything.terminal import Terminal from auto_everything.disk import Store store = Store("task") py = Python() t = Terminal() class Task(): def add(self, comment): l = store.get("list", []) l.append(comment) store.set("list", l) print(comment) def done(self, index): l = store.get("list", []) del l[index] store.set("list", l) def list(self): l = store.get("list", []) for i, v in enumerate(l): print(f"{i}: {v}") py.fire(Task) py.make_it_global_runnable(executable_name="Task")