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
==> https://stackoverflow.com/questions/55141267/how-to-install-and-where-to-install-bash-bc-on-windows | |
GIT Bash uses MINGW compilation of GNU tools. | |
It uses only selected ones. | |
You can install the whole distribution of the tools from https://www.msys2.org/ and run a command to install bc. | |
And then copy some files to installation folder of Git. | |
This is what you do: | |
1. Install before-mentioned msys2 package and run msys2 shell. |
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
==> https://www.cyberciti.biz/faq/linux-unix-sleep-bash-scripting/ | |
Seconds: | |
sleep 5 | |
Want to sleep for 2 minutes, use: | |
sleep 2m | |
Halt or sleep for 3 hours, use: | |
sleep 3h |
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
==> https://unix.stackexchange.com/questions/479/keep-processes-running-after-ssh-session-disconnects | |
$ nohup long-running-process & | |
$ exit |
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
==> http://www.compciv.org/topics/bash/loops/ | |
for name in $(ls -a | sort); do echo filename - $name; done |
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
==> https://stackoverflow.com/questions/37104273/how-to-set-aliases-in-the-git-bash-for-windows | |
cd | |
echo alias k=\'kubectl\' >> .bashrc | |
source .bashrc |
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
==> https://linuxize.com/post/bash-increment-decrement-variable/ | |
==> https://stackoverflow.com/questions/10515964/counter-increment-in-bash-loop-not-working | |
set +e; | |
NUMBER_RUNS = 3 | |
COUNTER=1; | |
while [[ $COUNTER -le $NUMBER_RUNS ]]; | |
do | |
echo "start $COUNTER of $NUMBER_RUNS"; | |
echo q; |
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
==> https://gist.github.com/rxaviers/7360908 |
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
Для контейнера необходимо выставить: | |
imagePullPolicy: IfNotPresent |
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
==> https://www.cyberciti.biz/faq/ping-test-a-specific-port-of-machine-ip-address-using-linux-unix/ | |
## check for tcp port ## | |
## need bash shell ## | |
(echo >/dev/tcp/{host}/{port}) &>/dev/null && echo "open" || echo "close" | |
(echo >/dev/udp/{host}/{port}) &>/dev/null && echo "open" || echo "close" | |
(echo >/dev/tcp/www.cyberciti.biz/22) &>/dev/null && echo "Open 22" || echo "Close 22" | |
(echo >/dev/tcp/www.cyberciti.biz/443) &>/dev/null && echo "Open 443" || echo "Close 443" |
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
==> https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html | |
./gradlew -q dependencies |