Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
sysctl -w net.ipv4.ip_forward=1 | |
iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
sysctl -w net.ipv4.ip_forward=1 | |
firewall-cmd --add-masquerade --permanent | |
firewall-cmd --add-forward --permanent | |
firewall-cmd --reload |
Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php print("Hello World")?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Установка, запуск и проверка apache | |
hosts: servers | |
become: yes | |
tasks: | |
- name: Установка последней версии apache2 | |
apt: | |
name: "apache2" | |
state: latest | |
update_cache: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd FileType yaml setlocal ai ts=2 sw=2 et |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LESS_TERMCAP_mb=$'\e[1;34m' # begin bold | |
export LESS_TERMCAP_md=$'\e[1;32m' # begin blink | |
export LESS_TERMCAP_so=$'\e[01;44;37m' # begin reverse video | |
export LESS_TERMCAP_us=$'\e[01;36m' # begin underline | |
export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink | |
export LESS_TERMCAP_se=$'\e[0m' # reset reverse video | |
export LESS_TERMCAP_ue=$'\e[0m' # reset underline | |
export GROFF_NO_SGR=1 # for konsole and gnome-terminal | |
export MANPAGER='less -s -M +Gg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "[step 1] ====== Установка ПО" | |
sudo dnf install epel-release | |
sudo dnf install neovim git tmux mc curl ripgrep gcc neofetch duf cowsay fortune-mod -y | |
echo "[step 2] ====== Enable cockpit" | |
sudo systemctl enable --now cockpit.socket | |
systemctl status cockpit.service | |
echo "[step 3] ====== Tmux конфигурация" |