From 1f70791059d9e4755f468b48b324461a3119506f Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Sat, 3 Aug 2024 00:21:18 -0700 Subject: [PATCH] routine update --- ...r Extension Getting Started Bitwarden.md" | 39 +++++++++++ .../\"2024-08-02\" 133616 ComfyUI.md" | 65 +++++++++++++++++++ ...lect a Pet Insurance Plan for Your Pet.md" | 16 +++++ ...shooting Database Sync Issues - Claude.md" | 8 +++ ...hortener Database Sync Issues - Claude.md" | 25 +++++++ .../\"2024-08-02\" 133616 Your Orders.md" | 8 +++ ...NhrtQwCHNdK5sRZC - Aug 02 2024 at 1427.md" | 8 +++ ...NhrtQwCHNdK5sRZC - Aug 02 2024 at 1426.md" | 8 +++ ....50.8c50895e.html - Aug 03, 2024 at 00:13" | 9 +++ .../\"2024-08-02\" 133616 reCAPTCHA.md" | 11 ++++ ...japistart.sh at main - sijapi - sij's git" | 25 +++++++ ...UI Instagram Postgr. - sijapi - sij's git" | 8 +++ sijapi/helpers/start.py | 15 ++--- 13 files changed, 234 insertions(+), 11 deletions(-) create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Browser Extension Getting Started Bitwarden.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 ComfyUI.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Select a Pet Insurance Plan for Your Pet.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting Database Sync Issues - Claude.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting URL Shortener Database Sync Issues - Claude.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Your Orders.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2023-09-01end_date2023-11-01api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1427.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2024-07-28end_date2024-07-31api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1426.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsimages-na.ssl-images-amazon.comimagesSapesafeframeapesfdesktopsf-1.50.8c50895e.html - Aug 03, 2024 at 00:13" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 reCAPTCHA.md" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijapistart.sh at main - sijapi - sij's git" create mode 100644 "'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijsijapi Multimodal API for integrating Obsidian Tailscale Cloudflare Ollama r2r ElevenLabs xtts_v2 whisper_cpp ComfyUI Instagram Postgr. - sijapi - sij's git" diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Browser Extension Getting Started Bitwarden.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Browser Extension Getting Started Bitwarden.md" new file mode 100644 index 0000000..f83b6bf --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Browser Extension Getting Started Bitwarden.md" @@ -0,0 +1,39 @@ +--- +title: Browser Extension Getting Started | Bitwarden +added: Aug 02, 2024 at 23:04 +url: https://bitwarden.com/browser-start/date: 2024-08-02--- + +# Browser Extension Getting Started | Bitwarden + +Clipped from [https://bitwarden.com/browser-start/](https://bitwarden.com/browser-start/) on Aug 02, 2024 at 23:04Now that you have successfully added a login vault item, the pain of manually entering login credentials is now a thing of the past. Autofill is at your fingertips, and you can choose from several [methods](/help/auto-fill-browser/) to activate it: + +* **Keyboard shortcuts** + +`Ctrl/CMD + Shift + L` → Auto-fill, press again to cycle through matching logins +* **Right click in a username/password field** + +Select Bitwarden from the context menu and then auto-fill +* Tap the Bitwarden extension to copy a username/password individually + +### Load your passwords automatically as you browse + +To [automatically load](/help/auto-fill-browser/#on-page-load) your passwords as soon as you navigate to an account in your vault, open your Bitwarden browser extension and go to your Settings menu. From there, select “options” (under the **Other** category) and enable **Auto-fill on page load**. + +For fast access to your credentials, setup a [PIN](/help/unlock-with-pin/) or [biometrics](/help/biometrics/) (TouchID/FaceID) to unlock your vault. + + + +--- + +### Vault Switching with the All Vaults filter + +Bitwarden enables you to easily switch between your personal vault and any shared vaults you may have joined, such as the one shared by your team or organization. To navigate between different vaults you belong to, open the browser extension and click the “All Vaults” filter at the top. + +While surfing the web, you can easily access the vault items associated with the current website you’re on from within the Tab screen in your browser extension. + +Use [Folders](/help/folders/) to organize the items stored in your personal vault. To create or modify a folder, navigate to Folders in the Settings menu.Use [Collections](/help/teams-enterprise-migration-guide/#collections) to organize credentials shared in your family or business organization. To create or modify a collection (based on user permissions), visit the Bitwarden [web vault](https://vault.bitwarden.com/) . + +### Disabling your browser-based password manager + +To get the most out of Bitwarden, don’t forget to [disable](/help/getting-started-browserext/#disable-a-built-in-password-manager) your browser’s ability to manage credentials and let Bitwarden handle the heavy lifting. This update will also protect against the security [vulnerabilities](/blog/beyond-your-browser/) introduced by browser-based password managers. + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 ComfyUI.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 ComfyUI.md" new file mode 100644 index 0000000..e8ae795 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 ComfyUI.md" @@ -0,0 +1,65 @@ +--- +title: ComfyUI +added: Aug 02, 2024 at 23:35 +url: http://127.0.0.1:8188/date: 2024-08-02--- + +# ComfyUI + +Clipped from [http://127.0.0.1:8188/](http://127.0.0.1:8188/) on Aug 02, 2024 at 23:35 +Queue PromptExtra options + +Queue FrontView QueueClose + +#### Running + +#### Pending + +Clear QueueRefresh + +#### History + +-15: LoadDelete + +-16: LoadDelete + +-19: LoadDelete + +-17: LoadDelete + +-18: LoadDelete + +-14: LoadDelete + +-13: LoadDelete + +-12: LoadDelete + +-11: LoadDelete + +-10: LoadDelete + +-9: LoadDelete + +-8: LoadDelete + +6: LoadDelete + +5: LoadDelete + +4: LoadDelete + +3: LoadDelete + +-2: LoadDelete + +-1: LoadDelete + +0: LoadDelete + +Clear HistoryRefresh + +SaveSave (API Format)LoadRefreshClipspaceClearLoad DefaultReset View + +--- + +ManagerShareClearExport logs...View exported logs...Close \ No newline at end of file diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Select a Pet Insurance Plan for Your Pet.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Select a Pet Insurance Plan for Your Pet.md" new file mode 100644 index 0000000..e5a6c95 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Select a Pet Insurance Plan for Your Pet.md" @@ -0,0 +1,16 @@ +--- +title: Select a Pet Insurance Plan for Your Pet +added: Aug 02, 2024 at 22:46 +url: https://www.petsbest.com/enroll/planselection?petId=19752826date: 2024-08-02--- + +# Select a Pet Insurance Plan for Your Pet + +Clipped from [https://www.petsbest.com/enroll/planselection?petId=19752826](https://www.petsbest.com/enroll/planselection?petId=19752826) on Aug 02, 2024 at 22:46 +If waiting periods apply to your policy, they will be shown on your declarations page. During waiting periods no coverage is provided. + +Waiting periods are just 3 days for accidents, 14 days for illnesses, and routine care can be used the day after you enroll. + +For Cruciate Ligament Events and any related Conditions, there is a 6 month waiting period following the Policy Effective Date. + + + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting Database Sync Issues - Claude.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting Database Sync Issues - Claude.md" new file mode 100644 index 0000000..3346918 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting Database Sync Issues - Claude.md" @@ -0,0 +1,8 @@ +--- +title: Troubleshooting Database Sync Issues - Claude +added: Aug 02, 2024 at 23:27 +url: https://claude.ai/chat/23746c97-a4f8-4115-b68c-f7dcb17aaf7bdate: 2024-08-02--- + +# Troubleshooting Database Sync Issues - Claude + +Clipped from [https://claude.ai/chat/23746c97-a4f8-4115-b68c-f7dcb17aaf7b](https://claude.ai/chat/23746c97-a4f8-4115-b68c-f7dcb17aaf7b) on Aug 02, 2024 at 23:27 \ No newline at end of file diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting URL Shortener Database Sync Issues - Claude.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting URL Shortener Database Sync Issues - Claude.md" new file mode 100644 index 0000000..42e0eff --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Troubleshooting URL Shortener Database Sync Issues - Claude.md" @@ -0,0 +1,25 @@ +--- +title: Troubleshooting URL Shortener Database Sync Issues - Claude +added: Aug 02, 2024 at 23:45 +url: https://claude.ai/chat/3e938344-7934-4f56-981c-36a2cc625a4ddate: 2024-08-02--- + +# Troubleshooting URL Shortener Database Sync Issues - Claude + +Clipped from [https://claude.ai/chat/3e938344-7934-4f56-981c-36a2cc625a4d](https://claude.ai/chat/3e938344-7934-4f56-981c-36a2cc625a4d) on Aug 02, 2024 at 23:45cd ~/workshop/sijapi; mamba activate sijapi; python -m sijapi --log debug +Traceback (most recent call last): + File "/Users/sij/miniforge3/envs/sijapi/lib/python3.10/runpy.py", line 187, in *run*module\_as\_main + mod\_name, mod\_spec, code = *get*module\_details(mod\_name, \_Error) + File "/Users/sij/miniforge3/envs/sijapi/lib/python3.10/runpy.py", line 146, in *get*module\_details + return *get*module\_details(pkg\_main\_name, error) + File "/Users/sij/miniforge3/envs/sijapi/lib/python3.10/runpy.py", line 110, in *get*module\_details + **import**(pkg\_name) + File "/Users/sij/workshop/sijapi/sijapi/init.py", line 9, in + from .classes import Geocoder, APIConfig, Configuration + File "/Users/sij/workshop/sijapi/sijapi/classes.py", line 171, in + class APIConfig(BaseModel): + File "/Users/sij/miniforge3/envs/sijapi/lib/python3.10/site-packages/pydantic/\_internal/\_model\_construction.py", line 93, in **new** + private\_attributes = inspect\_namespace( + File "/Users/sij/miniforge3/envs/sijapi/lib/python3.10/site-packages/pydantic/\_internal/\_model\_construction.py", line 381, in inspect\_namespace + raise NameError( +NameError: Fields must not use names with leading underscores; e.g., use 'online\_hosts\_cache' instead of '\_online\_hosts\_cache'. + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Your Orders.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Your Orders.md" new file mode 100644 index 0000000..dd0288a --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 Your Orders.md" @@ -0,0 +1,8 @@ +--- +title: Your Orders +added: Aug 03, 2024 at 00:13 +url: https://www.amazon.com/gp/css/order-history?ref_=nav_orders_firstdate: 2024-08-03--- + +# Your Orders + +Clipped from [https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first](https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first) on Aug 03, 2024 at 00:13 \ No newline at end of file diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2023-09-01end_date2023-11-01api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1427.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2023-09-01end_date2023-11-01api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1427.md" new file mode 100644 index 0000000..02a40e2 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2023-09-01end_date2023-11-01api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1427.md" @@ -0,0 +1,8 @@ +--- +title: https://api.sij.ai/map?start_date=2023-09-01&end_date=2023-11-01&api_key=sk-NhrtQwCHNdK5sRZC - Aug 02, 2024 at 14:27 +added: Aug 02, 2024 at 14:27 +url: https://api.sij.ai/map?start_date=2023-09-01&end_date=2023-11-01&api_key=sk-NhrtQwCHNdK5sRZCdate: 2024-08-02--- + +# https://api.sij.ai/map?start_date=2023-09-01&end_date=2023-11-01&api_key=sk-NhrtQwCHNdK5sRZC - Aug 02, 2024 at 14:27 + +Clipped from [https://api.sij.ai/map?start_date=2023-09-01&end_date=2023-11-01&api_key=sk-NhrtQwCHNdK5sRZC](https://api.sij.ai/map?start_date=2023-09-01&end_date=2023-11-01&api_key=sk-NhrtQwCHNdK5sRZC) on Aug 02, 2024 at 14:27 \ No newline at end of file diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2024-07-28end_date2024-07-31api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1426.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2024-07-28end_date2024-07-31api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1426.md" new file mode 100644 index 0000000..0a4b365 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsapi.sij.aimapstart_date2024-07-28end_date2024-07-31api_keysk-NhrtQwCHNdK5sRZC - Aug 02 2024 at 1426.md" @@ -0,0 +1,8 @@ +--- +title: https://api.sij.ai/map?start_date=2024-07-28&end_date=2024-07-31&api_key=sk-NhrtQwCHNdK5sRZC - Aug 02, 2024 at 14:26 +added: Aug 02, 2024 at 14:26 +url: https://api.sij.ai/map?start_date=2024-07-28&end_date=2024-07-31&api_key=sk-NhrtQwCHNdK5sRZCdate: 2024-08-02--- + +# https://api.sij.ai/map?start_date=2024-07-28&end_date=2024-07-31&api_key=sk-NhrtQwCHNdK5sRZC - Aug 02, 2024 at 14:26 + +Clipped from [https://api.sij.ai/map?start_date=2024-07-28&end_date=2024-07-31&api_key=sk-NhrtQwCHNdK5sRZC](https://api.sij.ai/map?start_date=2024-07-28&end_date=2024-07-31&api_key=sk-NhrtQwCHNdK5sRZC) on Aug 02, 2024 at 14:26 \ No newline at end of file diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsimages-na.ssl-images-amazon.comimagesSapesafeframeapesfdesktopsf-1.50.8c50895e.html - Aug 03, 2024 at 00:13" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsimages-na.ssl-images-amazon.comimagesSapesafeframeapesfdesktopsf-1.50.8c50895e.html - Aug 03, 2024 at 00:13" new file mode 100644 index 0000000..2215c1b --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 httpsimages-na.ssl-images-amazon.comimagesSapesafeframeapesfdesktopsf-1.50.8c50895e.html - Aug 03, 2024 at 00:13" @@ -0,0 +1,9 @@ +--- +title: https://images-na.ssl-images-amazon.com/images/S/apesafeframe/ape/sf/desktop/sf-1.50.8c50895e.html - Aug 03, 2024 at 00:13 +added: Aug 03, 2024 at 00:13 +url: https://images-na.ssl-images-amazon.com/images/S/apesafeframe/ape/sf/desktop/sf-1.50.8c50895e.htmldate: 2024-08-03--- + +# https://images-na.ssl-images-amazon.com/images/S/apesafeframe/ape/sf/desktop/sf-1.50.8c50895e.html - Aug 03, 2024 at 00:13 + +Clipped from [https://images-na.ssl-images-amazon.com/images/S/apesafeframe/ape/sf/desktop/sf-1.50.8c50895e.html](https://images-na.ssl-images-amazon.com/images/S/apesafeframe/ape/sf/desktop/sf-1.50.8c50895e.html) on Aug 03, 2024 at 00:13Universal Smartphone Video Rig for iPhone/Samsung, by SMALLRIG + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 reCAPTCHA.md" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 reCAPTCHA.md" new file mode 100644 index 0000000..06e106a --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 reCAPTCHA.md" @@ -0,0 +1,11 @@ +--- +title: reCAPTCHA +added: Aug 02, 2024 at 23:45 +url: https://www.google.com/recaptcha/enterprise/anchor?ar=1&k=6LcdsFgmAAAAAMfrnC1hEdmeRQRXCjpy8qT_kvfy&co=aHR0cHM6Ly9jbGF1ZGUuYWk6NDQz&hl=en&v=hfUfsXWZFeg83qqxrK27GB8P&size=invisible&cb=2yc5hfjz3tyvdate: 2024-08-02--- + +# reCAPTCHA + +Clipped from [https://www.google.com/recaptcha/enterprise/anchor?ar=1&k=6LcdsFgmAAAAAMfrnC1hEdmeRQRXCjpy8qT_kvfy&co=aHR0cHM6Ly9jbGF1ZGUuYWk6NDQz&hl=en&v=hfUfsXWZFeg83qqxrK27GB8P&size=invisible&cb=2yc5hfjz3tyv](https://www.google.com/recaptcha/enterprise/anchor?ar=1&k=6LcdsFgmAAAAAMfrnC1hEdmeRQRXCjpy8qT_kvfy&co=aHR0cHM6Ly9jbGF1ZGUuYWk6NDQz&hl=en&v=hfUfsXWZFeg83qqxrK27GB8P&size=invisible&cb=2yc5hfjz3tyv) on Aug 02, 2024 at 23:45 + +Recaptcha requires verification. + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijapistart.sh at main - sijapi - sij's git" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijapistart.sh at main - sijapi - sij's git" new file mode 100644 index 0000000..9fa94cd --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijapistart.sh at main - sijapi - sij's git" @@ -0,0 +1,25 @@ +--- +title: sijapi/start.sh at main - sijapi - sij's git +added: Aug 02, 2024 at 14:12 +url: https://git.sij.ai/sij/sijapi/src/branch/main/start.shdate: 2024-08-02--- + +# sijapi/start.sh at main - sijapi - sij's git + +Clipped from [https://git.sij.ai/sij/sijapi/src/branch/main/start.sh](https://git.sij.ai/sij/sijapi/src/branch/main/start.sh) on Aug 02, 2024 at 14:12| | `#!/bin/bash` | +| --- | --- | +| | | +| | `# Set the path to the script` | +| | `SCRIPT_PATH="./sijapi/helpers/start.py"` | +| | | +| | `# Check if the script exists` | +| | `if [ ! -f "$SCRIPT_PATH" ]; then` | +| | `echo "Error: Script not found at $SCRIPT_PATH"` | +| | `exit 1` | +| | `fi` | +| | | +| | `# Set up the environment` | +| | `source "./sijapi/config/.env"` | +| | | +| | `# Run the Python script` | +| | `python "$SCRIPT_PATH"` | + diff --git "a/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijsijapi Multimodal API for integrating Obsidian Tailscale Cloudflare Ollama r2r ElevenLabs xtts_v2 whisper_cpp ComfyUI Instagram Postgr. - sijapi - sij's git" "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijsijapi Multimodal API for integrating Obsidian Tailscale Cloudflare Ollama r2r ElevenLabs xtts_v2 whisper_cpp ComfyUI Instagram Postgr. - sijapi - sij's git" new file mode 100644 index 0000000..f9a2729 --- /dev/null +++ "b/'/Users/sij/.private/archive/'/\"2024\"/\"2024-08 August\"/\"2024-08-02 Friday\"/\"2024-08-02\" 133616 sijsijapi Multimodal API for integrating Obsidian Tailscale Cloudflare Ollama r2r ElevenLabs xtts_v2 whisper_cpp ComfyUI Instagram Postgr. - sijapi - sij's git" @@ -0,0 +1,8 @@ +--- +title: sij/sijapi: Multimodal API for integrating Obsidian, Tailscale, Cloudflare, Ollama, r2r, ElevenLabs, xtts_v2, whisper_cpp, ComfyUI, Instagram, Postgres, GPS/GIS, Courtlistener, IMAP emails, MS365 & Apple Calendars, Timing, in a way that may not make sense to many except sij himself. - sijapi - sij's git +added: Aug 02, 2024 at 14:12 +url: https://git.sij.ai/sij/sijapidate: 2024-08-02--- + +# sij/sijapi: Multimodal API for integrating Obsidian, Tailscale, Cloudflare, Ollama, r2r, ElevenLabs, xtts_v2, whisper_cpp, ComfyUI, Instagram, Postgres, GPS/GIS, Courtlistener, IMAP emails, MS365 & Apple Calendars, Timing, in a way that may not make sense to many except sij himself. - sijapi - sij's git + +Clipped from [https://git.sij.ai/sij/sijapi](https://git.sij.ai/sij/sijapi) on Aug 02, 2024 at 14:12 \ No newline at end of file diff --git a/sijapi/helpers/start.py b/sijapi/helpers/start.py index bcc091c..0f218fc 100644 --- a/sijapi/helpers/start.py +++ b/sijapi/helpers/start.py @@ -27,14 +27,12 @@ def load_env(): except ValueError: logging.warning(f"Skipping invalid line in .env file: {line}") - def check_server(ip, port, ts_id): address = f"http://{ip}:{port}/id" - logging.info(f"Checking {address} for response...") try: response = requests.get(address, timeout=5) response_text = response.text.strip().strip('"') - logging.info(f"{address} responded '{response_text}'") + return response.status_code == 200 and response_text == ts_id except requests.RequestException as e: logging.error(f"Error checking server {ts_id}: {str(e)}") @@ -81,8 +79,7 @@ def start_remote_server(server): password=server['ssh_pass'], timeout=10 ) - - # Check if tmux session already exists + status, output, error = execute_ssh_command(ssh, f"{server['tmux']} has-session -t sijapi 2>/dev/null && echo 'exists' || echo 'not exists'") if output == 'exists': logging.info(f"sijapi session already exists on {server['ts_id']}") @@ -102,7 +99,6 @@ def start_remote_server(server): ssh.close() - def main(): load_env() config = load_config() @@ -110,7 +106,6 @@ def main(): local_ts_id = os.environ.get('TS_ID') for server in pool: - logging.info(f"Checking {server['ts_id']}...") if check_server(server['ts_ip'], server['app_port'], server['ts_id']): logging.info(f"{server['ts_id']} is running and responding correctly.") else: @@ -120,9 +115,7 @@ def main(): else: start_remote_server(server) - logging.info("Waiting 5 seconds before next check...") - time.sleep(5) - + time.sleep(1) if __name__ == "__main__": - main() + main() \ No newline at end of file