From ba5e73f0271a4b81f247d5f931083d750dc01a42 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 17 Jan 2024 18:19:35 +0200 Subject: [PATCH 1/5] added home router configure --- NOTES/useful commands.md | 1 + _CONFIGS/home router config.md | 30 ++++++++++++++++++++++++++++++ linux/disk fscheck.md | 10 ++++++++++ 3 files changed, 41 insertions(+) create mode 100644 NOTES/useful commands.md create mode 100644 _CONFIGS/home router config.md create mode 100644 linux/disk fscheck.md diff --git a/NOTES/useful commands.md b/NOTES/useful commands.md new file mode 100644 index 0000000..17c3908 --- /dev/null +++ b/NOTES/useful commands.md @@ -0,0 +1 @@ +docker init \ No newline at end of file diff --git a/_CONFIGS/home router config.md b/_CONFIGS/home router config.md new file mode 100644 index 0000000..ab9b763 --- /dev/null +++ b/_CONFIGS/home router config.md @@ -0,0 +1,30 @@ +192.168.0.1 + popov %TGBnhy6= WPA2 AES + popov5G %TGBnhy6= auto auto + popov-guest wpa-psk aes 12345678 + -TP-Archer C6 Zelenakravapasetrev@ (original PIN:35390466, MAC: D8-07-B6-17-03-AE) + https://94.156.137.3:8444 + http://94.156.137.3:1024 +WAN: 192.168.100.3 DNS 20.101.62.76/1.1.1.3 +DHCP: 92.168.0.100-249 DNS 192.168.0.10/20.101.62.76 +RESERVATIONS: +C4-65-16-9A-E4-CD +192.168.0.11 +E8-65-D4-33-06-D0 +192.168.0.4 +10-FE-ED-B7-3E-D1 +192.168.0.3 +34-64-A9-D1-84-75 +192.168.0.10 +68-5D-43-A8-07-46 +192.168.0.20 +2C-56-DC-F0-14-80 +192.168.0.9 +B4-2E-99-3A-99-CB +192.168.0.2 +60-6D-C7-5E-63-29 +192.168.0.15 +30-85-A9-23-1D-F6 +192.168.0.13 +A4-CF-12-F5-22-8D +192.168.0.18 \ No newline at end of file diff --git a/linux/disk fscheck.md b/linux/disk fscheck.md new file mode 100644 index 0000000..9737928 --- /dev/null +++ b/linux/disk fscheck.md @@ -0,0 +1,10 @@ +sudo umount /mnt/mmc + +sudo fsck.vfat -a /dev/sdX1 +sudo fsck.ext4 -cDfty -C 0 /dev/sdX1 +-a: Automatically repair errors. +-c: Check for bad blocks. +-D: Optimize directories when possible. +-f: Force a check, even if the filesystem appears clean. +-t: Print timing stats (optional). +-C 0: Display progress information. \ No newline at end of file From 19538749c57c882e83a64addaa996b283af7d326 Mon Sep 17 00:00:00 2001 From: popov Date: Mon, 22 Jan 2024 08:41:35 +0000 Subject: [PATCH 2/5] added portainer reset passwd info --- linux/docker install.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux/docker install.md b/linux/docker install.md index 98765c1..c3eb7dd 100644 --- a/linux/docker install.md +++ b/linux/docker install.md @@ -9,6 +9,11 @@ sudo apt-get install docker-ce # add portainer 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/storage/docker_volumes/portainer_data:/data portainer/portainer-ce +# change portainer admin password +docker stop portainer +docker pull portainer/helper-reset-password +docker run --rm -v /mnt/storage/docker_volumes/portainer_data:/data portainer/helper-reset-password + # start sudo systemctl start docker From 96335ad501cdf1a34bb300bde494280da3362cfa Mon Sep 17 00:00:00 2001 From: popov Date: Mon, 22 Jan 2024 09:10:23 +0000 Subject: [PATCH 3/5] added docker cmd --- linux/docker install.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/docker install.md b/linux/docker install.md index c3eb7dd..0a8d7c6 100644 --- a/linux/docker install.md +++ b/linux/docker install.md @@ -22,3 +22,7 @@ sudo systemctl enable docker # build image sudo docker build -t your-image-name . + +# attach to container +docker exec -it potainer /bin/sh + From cffa6a40bb36d04d7360194cd39965257888c404 Mon Sep 17 00:00:00 2001 From: popov Date: Fri, 2 Feb 2024 14:32:26 +0000 Subject: [PATCH 4/5] added ai notes --- ai-ollama.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ai-ollama.md diff --git a/ai-ollama.md b/ai-ollama.md new file mode 100644 index 0000000..223fb75 --- /dev/null +++ b/ai-ollama.md @@ -0,0 +1,2 @@ +run llama code 7b in ollama" +ollama run codellama:7b-code \ No newline at end of file From a52364878c5c49a4783b4c1182dae4442c5d2f08 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 21 Feb 2024 18:21:57 +0200 Subject: [PATCH 5/5] notes --- linux/docker install.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/docker install.md b/linux/docker install.md index 98765c1..3cc8cee 100644 --- a/linux/docker install.md +++ b/linux/docker install.md @@ -1,5 +1,7 @@ # install sudo apt-get update +sudo apt update +sudo apt install gnupg sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"