ports:
- "127.0.0.1:9011:80"
- "${INT_NETWORK}:9011:80"
- "${EXT_NETWORK}:9011:80"
This file contains hidden or 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 | |
# vars | |
ext_if="ens192" | |
# flush all rules | |
iptables -F | |
iptables -F -t nat | |
iptables -F -t mangle | |
iptables -X |
This file contains hidden or 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
set -Eeuxo pipefail | |
# set -e - Exit immediately if a command exits with a non-zero | |
# status. Note that failing commands in a conditional | |
# statement will not cause an immediate exit. | |
# | |
# set -o pipefail - Sets the pipeline exit code to zero only if all | |
# commands of the pipeline exit successfully. | |
# | |
# set -u - Causes the bash shell to treat unset variables as an |
This file contains hidden or 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
== GIST == | |
работа из VSCode | |
установить расширение GIST от Ken Howard | |
Сохранение | |
Выделить фрагмент кода | |
F1>gist | |
Create new Gist | |
Описание и проч. по подсказкам |
This file contains hidden or 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
ctrl+b затем % - для вертикального разделения | |
ctrl+b затем " - для горизонтального разделения | |
ctrl+b затем : и ввести команду set synchronize-panes 1 для синхронизации ввода во всех окошках | |
ctrl+b затем : и ввести команду set synchronize-panes 0 для выключения синхронизации ввода во всех окошках | |
ctrl+b затем стрелки - для навигации между окошками |
This file contains hidden or 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
# Add this to your .tmux.conf | |
set -g mouse on | |
set-option -g -q mouse on | |
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" | |
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" | |
How do I dropdown?
This is how you dropdown.
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
This file contains hidden or 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
############################# | |
##### Magic script v1.01 #### | |
############################# | |
# Ask for elevated permissions if required | |
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) { | |
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs | |
Exit | |
} |
NewerOlder