AnythingLLM RAG upload via mkdocs hook:
- Add to mkdocs.yml
hooks:
- scripts/mkdocs_llm_hook.py
- Add .env with the following parameters
ANYTHINGLLM_API_KEY=add-your-llm-api-key
AnythingLLM RAG upload via mkdocs hook:
hooks:
- scripts/mkdocs_llm_hook.py
ANYTHINGLLM_API_KEY=add-your-llm-api-key
I had to migrate all container images stored in one Gitlab registry () to another ().
Here is the script. How to use it:
docker login gcr.hrz.tu-chemnitz.de
# also create a read-token for the source repo and export in your current shell
export SOURCE_TOKEN=...
| #!/bin/bash | |
| ################################################################################ | |
| # | |
| # Shell script to pull zfs snapshots with syncoid using a list of key:value pairs | |
| # Works with sendoptions=R, where syncoid's --recursive flag cannot be used | |
| # | |
| # IMPORTANT: Use bash, not sh! e.g.: > bash pull_snapshots.sh | |
| # | |
| ################################################################################ |
Example to retrieve all WFS Features and store as shapefile with pandas and geopandas.
Setup:
conda create -n wfs_env -c conda-forge
conda activate wfs_env
conda install owslib geopandas requests
First, check capabilities in browser :
I have a number of monthly manual tasks that I could not automate so far.
One of them is getting PDF from login-protected websites, saving them in specific folders with naming conventions (renaming etc.) and uploading those to my nextcloud.
The script below is for my Electricity Provider's PDFs. They are behind a simple login form (user & pw) and uploaded for the past 6 months. I always forget to check regularly enough to download all.
Two key takeaways:
selenium/standalone-chrome Docker imageThe instructions below are based on rupor-github/wsl-ssh-agent and benpye/wsl-ssh-pageant/issues/33.
Install dependencies:
sudo apt update && sudo apt install socat p7zip-fullGet npiperelay.exe, store it on the Windows side and make it
available in Linux with correct permissions.
Just to memorize, these are the steps to setup webdriver (chrome) and svg-export as of Bokeh 2.4.3 / Holoviews 1.14.8
This was tested in a Debian-based Docker container, but should work in most Linux distributions.
Install in your conda environment:
conda install selenium webdriver-manager -c conda-forgeThe latest nextcloud server versions will have ransomware detection automatically
enabled, meaning that syncing common developer file types (e.g. .lock) will return errors.
Fatal webdav OCA\DAV\Connector\Sabre\Exception\Forbidden: Ransomware file detected. Prevented upload of ..py/bokeh/secrets.tar.enc because it matches extension pattern ".enc"
If you are syncing complex, nested work directories as a developer, the following