Merge branch 'master' of http://git.d-popov.com/popov/scripts
This commit is contained in:
BIN
linux/.setup aider.md.swp
Normal file
BIN
linux/.setup aider.md.swp
Normal file
Binary file not shown.
@ -15,3 +15,10 @@ docker save -o <path/to/save/image.tar> 2fauth
|
||||
docker load -i <path/to/save/image.tar>
|
||||
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
|
||||
|
@ -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
|
@ -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
|
||||
|
||||
# ---------------------
|
||||
# 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.
|
@ -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
|
||||
@ -54,3 +55,12 @@ export GROQ_API_KEY=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
|
||||
aider --model groq/llama3-70b-8192 --no-auto-commits --show-repo-map
|
||||
# OLLAMA?
|
||||
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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
|
||||
|
42
linux/setup android emulator.md
Normal file
42
linux/setup android emulator.md
Normal 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
0
linux/sysyem maintain.md
Normal file
0
windows/.net/ef+asp notes.md
Normal file
0
windows/.net/ef+asp notes.md
Normal file
Reference in New Issue
Block a user