0 Голосов

Изменения документа Proxy

Редактировал(а) Anton Krivchenkov 31.03.2026 00:03

От версии 3.1
отредактировано Anton Krivchenkov
на 28.02.2026 23:02
Изменить комментарий: К данной версии нет комментариев
К версии 2.3
отредактировано Anton Krivchenkov
на 28.02.2026 22:02
Изменить комментарий: К данной версии нет комментариев

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -1,9 +3,5 @@
1 -# Отключение ICMP
2 -
3 3  nano disable_ping.sh
4 4  
5 --- НЕ ввезде прокатывает )) Зависит от Хостера
6 -
7 7   #!/usr/bin/env bash
8 8   set -e
9 9  
... ... @@ -24,7 +24,7 @@
24 24  
25 25   chmod +x disable_ping.sh && ./disable_ping.sh
26 26  
27 -# Утилиты
23 +Утилиты
28 28  
29 29   sudo apt update && sudo apt upgrade -y && \
30 30   sudo apt install -y \
... ... @@ -65,35 +65,8 @@
65 65   # fail2ban (ssh-джейл по умолчанию)
66 66   sudo systemctl enable --now fail2ban
67 67  
68 -# ZSH
64 +Докер
69 69  
70 - sudo apt update && sudo apt install -y zsh git fonts-powerline curl && \
71 - sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
72 - sed -i 's/^ZSH_THEME=.*/ZSH_THEME="agnoster"/' ~/.zshrc && \
73 - grep -q "^ZSH_DISABLE_COMPFIX=" ~/.zshrc && sed -i 's/^ZSH_DISABLE_COMPFIX=.*/ZSH_DISABLE_COMPFIX="true"/' ~/.zshrc || echo 'ZSH_DISABLE_COMPFIX="true"' >> ~/.zshrc && \
74 - sed -i 's/^plugins=(.*/plugins=(git sudo zsh-autosuggestions zsh-syntax-highlighting)/' ~/.zshrc && \
75 - git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
76 - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
77 - printf "\nalias ll='ls -la'\nalias gs='git status'\nalias d='docker ps --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\"'\nalias dcu='docker compose up -d'\nalias dcd='docker compose down'\nalias dl='docker logs'\nalias n='nano'\nalias lzd='lazydocker'\nalias dr='dry'\nalias dcuf='docker compose up -d --force-recreate'\nalias dv='docker ps -a --format \"table {{.Names}}\t{{.Mounts}}\"'\nalias dvc='docker ps -a --format \"{{.Mounts}}\" | tr \",\" \"\n\" | grep -v \"^$\" | sort | uniq'\nalias dvo='comm -23 <(docker volume ls -q | sort) <(docker ps -a --format \"{{.Mounts}}\" | tr \",\" \"\n\" | grep -v \"^$\" | sort | uniq)'\nalias dsp='docker system prune -a --volumes'\nalias ds='docker stats --no-stream'\nalias dcdub='docker compose down && docker compose up --build'\nalias cr_gitlab_repo='/prod/create_repo_and_push.sh'\n" >> ~/.zshrc && \
78 - chsh -s "$(which zsh)"
79 -
80 -дальше
81 -
82 - exec zsh
83 -
84 -что делает:
85 -
86 -* ставит zsh, git и powerline‑шрифты
87 -* ставит Oh My Zsh
88 -* включает нужную тему и плагины
89 -* добавляет твои алиасы
90 -* включает ZSH_DISABLE_COMPFIX="true"
91 -* делает zsh оболочкой по умолчанию
92 -
93 ---
94 -
95 -# Докер
96 -
97 97   sudo curl -fsSL https://get.docker.com | sh &&
98 98   LATEST=$(curl -sL https://api.github.com/repos/docker/compose/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
99 99   DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
... ... @@ -104,12 +104,12 @@
104 104  
105 105  Управление докером
106 106  
107 -## ctop
76 +ctop
108 108  
109 109   sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-linux-amd64 -O /usr/local/bin/ctop
110 110   sudo chmod +x /usr/local/bin/ctop
111 111  
112 -## lzd
81 +lzd
113 113  
114 114   DIR=/usr/local/bin \
115 115   bash -c 'curl -fsSL https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash && echo "alias lzd='\''lazydocker'\''" >> "$HOME/.zshrc"'