This commit is contained in:
Dobromir Popov
2024-08-15 16:00:02 +03:00
8 changed files with 107 additions and 38 deletions

BIN
linux/.setup aider.md.swp Normal file

Binary file not shown.

View File

@ -15,3 +15,10 @@ docker save -o <path/to/save/image.tar> 2fauth
docker load -i <path/to/save/image.tar> docker load -i <path/to/save/image.tar>
docker run -d --name <new_container_name> <backup_image_name> docker run -d --name <new_container_name> <backup_image_name>
# cleanup
Remove all unused images/volumes:
docker image prune -a
docker volume prune
# containers, networks, images, and volumes
docker system prune -a --volumes

View File

@ -1,27 +0,0 @@
# disk info
lsblk
sudo fdisk -l
sudo parted -l
gnome-disks
sudo umount -f /mnt
umount --lazy /mnt/data
## ntfs resize:
sudo ntfsfix /dev/sda2
# Shrink the NTFS Partition:
sudo ntfsresize --size 100G /dev/sda2 (-f)
mkdir
# folder size:
du -hs
# find big files
find / -type f -size +100M

View File

@ -11,6 +11,43 @@ fdisk p # existing partitions
# Press n to create a new partition. # Press n to create a new partition.
# press w to write the changes to the disk. # press w to write the changes to the disk.
sudo mkfs.ext4 /dev/sdXN sudo mkfs.ext4 /dev/sdXN
# mount # mount
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/apps/docker_volumes/portainer_data:/data portainer/portainer-ce docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/apps/docker_volumes/portainer_data:/data portainer/portainer-ce
# ---------------------
# disk info
lsblk
sudo fdisk -l
sudo parted -l
gnome-disks
sudo umount -f /mnt
umount --lazy /mnt/data
## ntfs resize:
sudo ntfsfix /dev/sda2
# Shrink the NTFS Partition:
sudo ntfsresize --size 100G /dev/sda2 (-f)
mkdir
# folder size:
du -hs
# find big files
find / -type f -size +100M
# find big files - NCurses Disk Utility - https://dev.yorhel.nl/ncdu
sudo apt-get install ncdu
ncdu
Delete the File: Once you have highlighted the file you want to delete, press the d key. ncdu will prompt you to confirm the deletion.

View File

@ -36,15 +36,16 @@ export OPENAI_API_KEY=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
usage: aider [-h] [--openai-api-key OPENAI_API_KEY] [--anthropic-api-key ANTHROPIC_API_KEY] [--model MODEL] [--models MODEL] [--opus] [--sonnet] [--4] [--4-turbo-vision] [--35turbo] usage: aider [-h] [--file FILE] [--openai-api-key OPENAI_API_KEY] [--anthropic-api-key ANTHROPIC_API_KEY] [--model MODEL] [--opus] [--sonnet] [--4] [--4o] [--4-turbo] [--35turbo] [--models MODEL] [--openai-api-base OPENAI_API_BASE]
[--voice-language VOICE_LANGUAGE] [--openai-api-base OPENAI_API_BASE] [--openai-api-type OPENAI_API_TYPE] [--openai-api-version OPENAI_API_VERSION] [--openai-api-type OPENAI_API_TYPE] [--openai-api-version OPENAI_API_VERSION] [--openai-api-deployment-id OPENAI_API_DEPLOYMENT_ID] [--openai-organization-id OPENAI_ORGANIZATION_ID]
[--openai-api-deployment-id OPENAI_API_DEPLOYMENT_ID] [--openai-organization-id OPENAI_ORGANIZATION_ID] [--edit-format EDIT_FORMAT] [--weak-model WEAK_MODEL] [--model-settings-file MODEL_SETTINGS_FILE] [--model-metadata-file MODEL_METADATA_FILE] [--verify-ssl | --no-verify-ssl] [--edit-format EDIT_FORMAT] [--weak-model WEAK_MODEL]
[--show-model-warnings | --no-show-model-warnings] [--map-tokens MAP_TOKENS] [--input-history-file INPUT_HISTORY_FILE] [--chat-history-file CHAT_HISTORY_FILE] [--dark-mode] [--show-model-warnings | --no-show-model-warnings] [--map-tokens MAP_TOKENS] [--max-chat-history-tokens MAX_CHAT_HISTORY_TOKENS] [--env-file ENV_FILE] [--input-history-file INPUT_HISTORY_FILE]
[--light-mode] [--pretty | --no-pretty] [--stream | --no-stream] [--user-input-color USER_INPUT_COLOR] [--tool-output-color TOOL_OUTPUT_COLOR] [--chat-history-file CHAT_HISTORY_FILE] [--restore-chat-history | --no-restore-chat-history] [--llm-history-file LLM_HISTORY_FILE] [--dark-mode] [--light-mode] [--pretty | --no-pretty] [--stream | --no-stream]
[--tool-error-color TOOL_ERROR_COLOR] [--assistant-output-color ASSISTANT_OUTPUT_COLOR] [--code-theme CODE_THEME] [--show-diffs] [--git | --no-git] [--user-input-color USER_INPUT_COLOR] [--tool-output-color TOOL_OUTPUT_COLOR] [--tool-error-color TOOL_ERROR_COLOR] [--assistant-output-color ASSISTANT_OUTPUT_COLOR] [--code-theme CODE_THEME] [--show-diffs]
[--gitignore | --no-gitignore] [--aiderignore AIDERIGNORE] [--auto-commits | --no-auto-commits] [--dirty-commits | --no-dirty-commits] [--dry-run | --no-dry-run] [--commit] [--git | --no-git] [--gitignore | --no-gitignore] [--aiderignore AIDERIGNORE] [--auto-commits | --no-auto-commits] [--dirty-commits | --no-dirty-commits] [--attribute-author | --no-attribute-author]
[--version] [--check-update] [--skip-check-update] [--apply FILE] [--yes] [-v] [--show-repo-map] [--message COMMAND] [--message-file MESSAGE_FILE] [--encoding ENCODING] [--attribute-committer | --no-attribute-committer] [--attribute-commit-message | --no-attribute-commit-message] [--dry-run | --no-dry-run] [--commit] [--lint] [--lint-cmd LINT_CMD] [--auto-lint | --no-auto-lint]
[-c CONFIG_FILE] [--test-cmd TEST_CMD] [--auto-test | --no-auto-test] [--test] [--vim] [--voice-language VOICE_LANGUAGE] [--version] [--just-check-update] [--check-update | --no-check-update] [--apply FILE] [--yes] [-v] [--show-repo-map]
[--show-prompts] [--exit] [--message COMMAND] [--message-file MESSAGE_FILE] [--encoding ENCODING] [-c CONFIG_FILE] [--gui]
[FILE ...] [FILE ...]
### OLLAMA || GROQ ### OLLAMA || GROQ
@ -53,4 +54,13 @@ 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
# OLLAMA? # OLLAMA?
aider --openai-api-base https://ollama.d-popov.com --models openai/ aider --openai-api-base https://ollama.d-popov.com --models openai/
# models:
https://aider.chat/docs/leaderboards/
aider --model openrouter/meta-llama/llama-3.1-405b-instruct
# https://openrouter.ai/settings/keys
OPENROUTER_API_KEY=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

View File

@ -0,0 +1,42 @@
# https://docs.waydro.id/usage/install-on-desktops
apt update
apt install curl ca-certificates -y
curl https://repo.waydro.id | bash
apt install waydroid -y
ensure we have in yml:
devices:
- "/dev/binder:/dev/binder"
- "/dev/ashmem:/dev/ashmem"
privileged: true
#
waydroid init
systemctl start waydroid-container
systemctl enable waydroid-container
systemctl status waydroid-container
<!-- ## ERROR: [Errno 2] No such file or directory: 'modprobe'
apt update
apt install kmod
## modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.15.0-91-generic
apt install linux-modules-extra-$(uname -r) -->
#
# export WAYLAND_DISPLAY=wayland-0
# export XDG_RUNTIME_DIR=/run/user/$(id -u)
useradd -m -s /bin/bash user
passwd user
usermod -aG sudo user
su - user
export DISPLAY=:1
export XDG_RUNTIME_DIR=/run/user/$(id -u)
# Start Waydroid if it is not already running
$waydroid session start

0
linux/sysyem maintain.md Normal file
View File

View File