This commit is contained in:
Dobromir Popov
2024-10-07 21:34:20 +03:00
parent 9e540fea8c
commit e993428fd1
4 changed files with 49 additions and 0 deletions

11
git/branches & search.md Normal file
View File

@ -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

20
linux/setup HA.sh Normal file
View File

@ -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

View File

@ -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/

16
python/pip_conda.md Normal file
View File

@ -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