From e993428fd15bcf7801d24ac9538bbd2a3b013588 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Mon, 7 Oct 2024 21:34:20 +0300 Subject: [PATCH] misc --- git/branches & search.md | 11 +++++++++++ linux/setup HA.sh | 20 ++++++++++++++++++++ linux/setup aider.md | 2 ++ python/pip_conda.md | 16 ++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 git/branches & search.md create mode 100644 linux/setup HA.sh create mode 100644 python/pip_conda.md diff --git a/git/branches & search.md b/git/branches & search.md new file mode 100644 index 0000000..527f6bb --- /dev/null +++ b/git/branches & search.md @@ -0,0 +1,11 @@ +search history: + + +enable auto pull: + git config branch.autosetuprebase always + git config pull.rebase true + + +eslint runs correctly and detected some wrong JS code: +C:\Work\GatewayServer\Multicheck.GW.Web\Scripts\gatewaycustom\Company\GW.Company.Dashboard.js +241:13 error 'fuUploadInterviews' is not defined no-undef diff --git a/linux/setup HA.sh b/linux/setup HA.sh new file mode 100644 index 0000000..b13d844 --- /dev/null +++ b/linux/setup HA.sh @@ -0,0 +1,20 @@ +NAME=hassio_supervisor +IMAGE=homeassistant/amd64-hassio-supervisor:latest + +docker container stop hassio_audio hassio_cli hassio_dns hassio_multicast hassio_observer hassio_su> +docker rm $(docker ps --filter status=exited -q) + +echo "y" | docker system prune + +docker run -d --name=$NAME \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v /var/run/dbus:/var/run/dbus \ + -v $PWD/config:/data \ + -e SUPERVISOR_SHARE=$PWD/config \ + -e SUPERVISOR_NAME=hassio_supervisor \ + -e HOMEASSISTANT_REPOSITORY=homeassistant/qemux86-64-homeassistant \ + --security-opt seccomp=unconfined \ + --security-opt apparmor=unconfined \ + --privileged \ + --restart always \ + $IMAGE \ No newline at end of file diff --git a/linux/setup aider.md b/linux/setup aider.md index 7764c84..1341076 100644 --- a/linux/setup aider.md +++ b/linux/setup aider.md @@ -53,6 +53,8 @@ usage: aider [-h] [--file FILE] [--openai-api-key OPENAI_API_KEY] [--anthropic-a aider --models groq/ export GROQ_API_KEY=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 aider --model groq/llama3-70b-8192 --no-auto-commits --show-repo-map +llama-3.1-8b-instant llama-3.1-70b-versatile + # OLLAMA? aider --openai-api-base https://ollama.d-popov.com --models openai/ diff --git a/python/pip_conda.md b/python/pip_conda.md new file mode 100644 index 0000000..cb5c288 --- /dev/null +++ b/python/pip_conda.md @@ -0,0 +1,16 @@ + +pip list --outdated + +#> pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U + +PS> pip list --outdated --format=json | ConvertFrom-Json | ForEach-Object { pip install --upgrade $_.name } + + + + +pip freeze > requirements.txt + + +pip install -r requirements.txt + +