@naturetravelvacationpictures · Post #403 · 04.04.2019 г., 02:30
🌿❤️✨🍃 Sunrays...🌞 #Water#Nature#Cave Join Us ✅🔜@Discover_Nature 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #411 · 9 фев.
reload_flag="" if [[ -n "${DEBUG}" ]]; then reload_flag="--reload" fi if [[ -n "${WORKER_COUNT}" ]]; then workers=${WORKER_COUNT} else workers=2 fi gunicorn --workers ${workers} \ --bind 0.0.0.0:8000 \ ${reload_flag} main.wsgi Писали такие конструкции чтобы проверить наличие флага и сформировать команду правильно? На самом деле можно сделать тоже самое проще. Для этого используются операторы условной подстановки, доступные в оболочках семейства POSIX. :- для установки значений по умолчанию ${WORKER_COUNT:-2} Если переменная не объявлена, то будет дефолтное значение 2. :+ подставляет указанный текст, если переменная не пуста ${DEBUG:+--reload} Если что-то есть в переменной то распечатается текст после символа +, в противном случае - ничего. Удобно для опциональных флагов, как в нашем примере. Итого наш скрипт может выглядеть так: gunicorn --workers ${WORKER_COUNT:-2} \ --bind 0.0.0.0:8000 \ ${DEBUG:+--reload} main.wsgi Есть еще два оператора. := не только подставить дефолтное значение, но и присвоить его переменной, если она пуста # никаких переменных еще нет VAL1=${VAL2:=hello} # теперь доступны обе echo $VAL1 $VAL2 # hello hello :? остановить выполнение с ошибкой, если переменной нет. echo ${MISS:?is required} bash: MISS: is required Код выхода будет 1. #tricks#linux
Пребарај: #cave
@naturetravelvacationpictures · Post #403 · 04.04.2019 г., 02:30
🌿❤️✨🍃 Sunrays...🌞 #Water#Nature#Cave Join Us ✅🔜@Discover_Nature 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
@bestwallpapes · Post #3245 · 22.01.2025 г., 13:55
@Bestwallpapes #Nature#Cave#Mountain
@interesting_planet_facts · Post #1200 · 07.01.2026 г., 12:11
🌎 Hidden beneath Slovakia, the Ochtinská Aragonite Cave is famous for its rare aragonite crystal formations, which look like tangled white “coral.” Its passages were naturally formed in Paleozoic-era rocks about 400 million years ago. The cave stretches only 300 meters but contains aragonite speleothems found in just a few caves worldwide. ✨ #cave⚡#geology⚡#minerals 👉subscribe Interesting Planet 👉more Channels
@interesting_planet_facts · Post #1070 · 25.11.2025 г., 12:11
🌎 Beneath the waters of the Bahamas, the so-called “blue holes” are deep, vertical underwater caves formed during past ice ages when sea levels were lower. Some exceed 300 meters in depth and preserve ancient fossils and climate records in their oxygen-poor layers. ✨ #ocean⚡#cave⚡#paleoclimate 👉subscribe Interesting Planet 👉more Channels
Hashtags
@expeditionsworldwide · Post #488 · 03.07.2023 г., 13:03
🫶 Dear subscribers! We delighted that you're following our channel! On our channel, you'll find everything about travel! By using hashtags, you can easily find the content that interests you. CHANNEL CONTENT: 📹#videoclips 🧭#expedition 🏔️#hiking 🤿#diving 🧨#unusualplaces ⛩#bridges 🏔#mountains ⌛️#facts ✈️#airplanecemeteries 🗻#hills 🏜#discoveries 🏖#beaches 🈴#China 🕌#India 💒#temples 🏤#architecturalmasterpieces 🚆#journeys 🏜#vacations 🎇#UNESCO ⛰#cliffs 🌋#canyon 🌊#lakes 🏢#skyscrapers ⛲️#waterfalls ⛴#dam 🏕#inaccessibleplaces 🌋#volcano 🚀#traveladvice 🌊#sea 🌲#forest 🏝#island 🌅#desert 🌫#ponds ⛰#cave ⭐️#travelhacks ⛺️#nationalpark Thank you for being a part of our travel community! Happy exploring! 🪐Discover upcoming expeditions — https://4elementos.shop
Hashtags