added some more scripts

This commit is contained in:
Dobromir Popov
2023-08-23 21:19:01 +00:00
parent a3aa17bcc8
commit 6fa44deff8
5 changed files with 45 additions and 2 deletions

20
linux/linux disk.md Normal file
View File

@ -0,0 +1,20 @@
# 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

View File

@ -1,5 +1,6 @@
setup miniconda:
conda create --name petals #python=3.10
conda activte
conda install pip
@ -9,6 +10,12 @@ pip install aider-chat
export OPENAI_API_KEY=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
#remove >
# remove >
conda deactivate
conda env remove --name petals
# conda install node
conda install -c conda-forge nodejs
conda update -c conda-forge nodejs

13
linux/rsync.md Normal file
View File

@ -0,0 +1,13 @@
a. On the source machine, generate an SSH key pair:
>ssh-keygen
Now, copy the public key to the destination machine:
>ssh-copy-id popov@192.168.0.11
#set permission locally
#chmod 600 /root/.ssh/id_rsa
apk add rsync
#!/bin/sh
rsync -avz /mnt/storage/Home-new/ popov@192.168.0.11:/mnt/storage/Home-new-copy/
rsync -avz /mnt/apps/DEV/ popov@192.168.0.11::/mnt/storage/DEV/workspace/dbspare/

View File

@ -1,2 +1,20 @@
in conda env:
pip install aider-chat
pip install aider-chat
# isntall ctags
# > sudo apt update && apt install universal-ctags
or:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install universal-ctags
> which ctags
/home/linuxbrew/.linuxbrew/bin/ctags
export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin/ctags
# personal
export OPENAI_API_KEY=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
# dev-bro GPT4
export OPENAI_API_KEY=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