How do I dropdown?
This is how you dropdown.
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
| ############################# | |
| ##### 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 | |
| } |
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
| # 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" | |
| ctrl+b затем % - для вертикального разделения | |
| ctrl+b затем " - для горизонтального разделения | |
| ctrl+b затем : и ввести команду set synchronize-panes 1 для синхронизации ввода во всех окошках | |
| ctrl+b затем : и ввести команду set synchronize-panes 0 для выключения синхронизации ввода во всех окошках | |
| ctrl+b затем стрелки - для навигации между окошками |
| == GIST == | |
| работа из VSCode | |
| установить расширение GIST от Ken Howard | |
| Сохранение | |
| Выделить фрагмент кода | |
| F1>gist | |
| Create new Gist | |
| Описание и проч. по подсказкам |
| 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 |
ports:
- "127.0.0.1:9011:80"
- "${INT_NETWORK}:9011:80"
- "${EXT_NETWORK}:9011:80"
| #!/bin/bash | |
| # vars | |
| ext_if="ens192" | |
| # flush all rules | |
| iptables -F | |
| iptables -F -t nat | |
| iptables -F -t mangle | |
| iptables -X |
| #!/usr/bin/env python3 | |
| # rabbitMQ password hashing algo as laid out in: | |
| # http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-May/012765.html | |
| from __future__ import print_function | |
| import base64 | |
| import os | |
| import hashlib | |
| import struct |