From deab2815fe706f8b2a2903a54508758daceffb34 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 31 Jul 2024 09:27:52 +0300 Subject: [PATCH 1/2] more notes --- linux/.setup aider.md.swp | Bin 0 -> 1024 bytes linux/docker commands.md | 7 ++++++ linux/linux disk.md | 27 -------------------- linux/linux disks.md | 39 ++++++++++++++++++++++++++++- linux/setup aider.md | 11 ++++++++- linux/setup android emulator.md | 42 ++++++++++++++++++++++++++++++++ linux/sysyem maintain.md | 0 windows/.net/ef+asp notes.md | 0 8 files changed, 97 insertions(+), 29 deletions(-) create mode 100644 linux/.setup aider.md.swp delete mode 100644 linux/linux disk.md create mode 100644 linux/setup android emulator.md create mode 100644 linux/sysyem maintain.md create mode 100644 windows/.net/ef+asp notes.md diff --git a/linux/.setup aider.md.swp b/linux/.setup aider.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..91ebb4bde5644f98127750e1fd84026f4b47ee39 GIT binary patch literal 1024 zcmYc?$V<%2S1{8vVn6|vQVa} 2fauth docker load -i docker run -d --name + +# cleanup +Remove all unused images/volumes: +docker image prune -a +docker volume prune +# containers, networks, images, and volumes +docker system prune -a --volumes diff --git a/linux/linux disk.md b/linux/linux disk.md deleted file mode 100644 index eaf57db..0000000 --- a/linux/linux disk.md +++ /dev/null @@ -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 diff --git a/linux/linux disks.md b/linux/linux disks.md index bf9bc0f..38cd896 100644 --- a/linux/linux disks.md +++ b/linux/linux disks.md @@ -11,6 +11,43 @@ fdisk p # existing partitions # Press n to create a new partition. # press w to write the changes to the disk. sudo mkfs.ext4 /dev/sdXN + # 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 \ No newline at end of file +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. \ No newline at end of file diff --git a/linux/setup aider.md b/linux/setup aider.md index a95e330..bf3dbb6 100644 --- a/linux/setup aider.md +++ b/linux/setup aider.md @@ -21,4 +21,13 @@ export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin/ctags export OPENAI_API_KEY=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 # dev-bro GPT4 -export OPENAI_API_KEY=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 \ No newline at end of file +export OPENAI_API_KEY=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 + + + +# 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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 diff --git a/linux/setup android emulator.md b/linux/setup android emulator.md new file mode 100644 index 0000000..c1abc33 --- /dev/null +++ b/linux/setup android emulator.md @@ -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 + + + +# +# 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 + diff --git a/linux/sysyem maintain.md b/linux/sysyem maintain.md new file mode 100644 index 0000000..e69de29 diff --git a/windows/.net/ef+asp notes.md b/windows/.net/ef+asp notes.md new file mode 100644 index 0000000..e69de29 From 9e540fea8c14c7a26c887c37d6acd90fd31a33c6 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 31 Jul 2024 09:35:49 +0300 Subject: [PATCH 2/2] aider updated from 0.7.2 to 0.46.2.dev0 --- linux/setup aider.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/linux/setup aider.md b/linux/setup aider.md index f4c3c48..7764c84 100644 --- a/linux/setup aider.md +++ b/linux/setup aider.md @@ -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] - [--voice-language VOICE_LANGUAGE] [--openai-api-base OPENAI_API_BASE] [--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] [--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] - [--light-mode] [--pretty | --no-pretty] [--stream | --no-stream] [--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] [--git | --no-git] - [--gitignore | --no-gitignore] [--aiderignore AIDERIGNORE] [--auto-commits | --no-auto-commits] [--dirty-commits | --no-dirty-commits] [--dry-run | --no-dry-run] [--commit] - [--version] [--check-update] [--skip-check-update] [--apply FILE] [--yes] [-v] [--show-repo-map] [--message COMMAND] [--message-file MESSAGE_FILE] [--encoding ENCODING] - [-c CONFIG_FILE] +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] + [--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] + [--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] [--max-chat-history-tokens MAX_CHAT_HISTORY_TOKENS] [--env-file ENV_FILE] [--input-history-file INPUT_HISTORY_FILE] + [--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] + [--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] + [--git | --no-git] [--gitignore | --no-gitignore] [--aiderignore AIDERIGNORE] [--auto-commits | --no-auto-commits] [--dirty-commits | --no-dirty-commits] [--attribute-author | --no-attribute-author] + [--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] + [--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 ...] ### OLLAMA || GROQ