@Wallpaper_INT · Post #46970 · 18.08.2025 г., 04:32
#Sea#Ocean#Boat#Sharks#8K @Wallpaper_INT
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
Пребарај: #sharks
@Wallpaper_INT · Post #46970 · 18.08.2025 г., 04:32
#Sea#Ocean#Boat#Sharks#8K @Wallpaper_INT
@interesting_planet_facts · Post #1243 · 21.01.2026 г., 18:11
🌎 Greenland sharks perform the longest known migration of any shark, swimming over 1,600 kilometers in a single journey. These slow-moving sharks can live over 400 years. ✨ #migration⚡#sharks⚡#Greenland 👉subscribe Interesting Planet 👉more Channels
Hashtags
@ethereumglobalnews · Post #1481 · 04.12.2025 г., 04:58
🪙ETH rebounds to $3,215 as shark wallets (1K–10K ETH) show strong accumulation#OnChain 以太坊在 1K–10K ETH「鯊魚級錢包」強力吸納下,重返 $3,215;同時,日增 19 萬新錢包地址,鏈上用戶增速明顯升溫。 #以太坊#DeFi市場#区块链#Sharks ——— ⚡️ 鯊魚級持倉者一向是 2025 年 ETH 的關鍵風向,本輪同步的 買盤 + 網路增長,可能預示短線結構再度轉強。 ✅Chat: @Web3NewsInsight 🦂 👇Tip👇讚 或點擊進行💎資源搜索👇
@googlefactss · Post #40188 · 25.11.2025 г., 11:04
Whale sharks have tiny teeth covering their eyeballs. 🦈👁️ These "dermal denticles" act like protective armor for their protruding, lidless eyes. [Source] @googlefactss#AnimalFacts#Sharks#MarineBiology#NatureIsWild
@sarconsulurals · Post #2546 · 07.09.2025 г., 05:17
🌊🦈 The coastal town of Gansbaai, located in South Africa’s Western Cape Province, is world-famous for its whale and shark populations. 🐋 Nicknamed the Great White Shark Capital of the World, Gansbaai attracts adventurers and nature lovers from across the globe. 🦈💦 The top thrill for many visitors is shark cage diving — a once-in-a-lifetime adventure that brings you face-to-face with great white sharks in their natural habitat. 📹 Video: https://t.me/south_africa_tours/73 #SouthAfrica#WesternCape#Gansbaai#Travel#Nature#Whales#Sharks