This commit is contained in:
Dobromir Popov
2024-10-21 13:27:27 +03:00
10 changed files with 150 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.aider*

View File

@ -0,0 +1,33 @@
; -- START GCODE --
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
;G28 X0 Y0 ;move X/Y to min endstops
;G28 Z0 ;move Z to min endstops
;G1 Z1 F1000 ;move up slightly
;G1 Y60.0 Z0 E9.0 F1000.0;intro line
;G1 Y100.0 E21.5 F1000.0 ;continue line
;G92 E0 ;zero the extruded length again
G28 ; Home all axes
G29 ; Bed Leveling Touch
G1 F80
;Put printing message on LCD screen
M117 Printing...
; -- end of START GCODE --
; -- END GCODE --
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F80 ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
M107 ;turn the fan off; -- end of END GCODE --

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,57 @@
config.json location:
win: C:\Users\popov\.continue\config.json
linux: ??
# example:
"tabAutocompleteModel": {
"title": "yi-coder:9b",
"provider": "ollama",
// "model": "stable-code:code",
// "model": "starcoder-3b"
"model": "yi-coder:9b",
// "apiBase": "https://ollama.d-popov.com"
"apiBase": "http://localhost:11434"
},
"allowAnonymousTelemetry": true,
"docs": []
,
"models": [
{
"title": "GPT-4 Vision (Free Trial)",
"provider": "free-trial",
"model": "gpt-4-vision-preview"
},
{
"title": "GPT-3.5-Turbo (Free Trial)",
"provider": "free-trial",
"model": "gpt-3.5-turbo"
},
{
"title": "Gemini Pro (Free Trial)",
"provider": "free-trial",
"model": "gemini-pro"
},
{
"title": "Codellama 70b (Free Trial)",
"provider": "free-trial",
"model": "codellama-70b"
},
{
"title": "Mixtral (Free Trial)",
"provider": "free-trial",
"model": "mistral-8x7b"
},
{
"title": "Claude 3 Sonnet (Free Trial)",
"provider": "free-trial",
"model": "claude-3-sonnet-20240229"
},
{
"title": "ollama> yi-coder:9b",
"provider": "ollama",
"model": "yi-coder:9b",
"apiBase": "https://ollama.d-popov.com"
}
],

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

View File

@ -17,7 +17,7 @@
### install miniconda ### install miniconda
>apt update >apt update
>apt wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh >wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
>bash Miniconda3-latest-Linux-x86_64.sh >bash Miniconda3-latest-Linux-x86_64.sh
> conda create -n petals python=3.10 > conda create -n petals python=3.10

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/ aider --models groq/
export GROQ_API_KEY=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 export GROQ_API_KEY=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
aider --model groq/llama3-70b-8192 --no-auto-commits --show-repo-map aider --model groq/llama3-70b-8192 --no-auto-commits --show-repo-map
llama-3.1-8b-instant llama-3.1-70b-versatile
# OLLAMA? # OLLAMA?
aider --openai-api-base https://ollama.d-popov.com --models openai/ 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

8
windows/.NET/EF.md Normal file
View File

@ -0,0 +1,8 @@
Update-Database -Script -StartupProjectName "GW.Web" -ProjectName GW.DomainModel
in VSCode:
dotnet tool restore
dotnet ef database update --startup-project GW.Web --project GW.DomainModel
dotnet ef database update --project "D:\PROJECTS\gatewayserver\GW.DomainModel\GW.DomainModel.csproj" --startup-project "D:\PROJECTS\gatewayserver\GW.Web\GW.Web.csproj" --msbuildprojectextensionspath bin\build_artifacts
trust certs: dotnet dev-certs https --trust