@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
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
Пребарај: #yummy
@bestwallpapes · Post #3332 · 01.04.2025 г., 13:36
@Bestwallpapes #Food#Yummy
@instavine · Post #1084 · 11.03.2017 г., 14:00
#food#yummy#hungry🍿🍬 ------------ @instavine
@TgDict · Post #212 · 08.11.2023 г., 15:44
#food#picture#yummy https://t.me/fporn https://t.me/restaurantfood https://t.me/onlyfood https://t.me/dailyfoodporn https://t.me/foodovik https://t.me/foodrumedia https://t.me/aiqing
@ThemesM8 · Post #293 · 04.05.2022 г., 17:50
https://t.me/addtheme/Cookies_ThemesM8 🍬@ThemesM8🍭 #light#android#desktop#cookie#cookies#cute#pastel#sweet#white#green#yummy#colors#colorful#theme#themes#telegram_theme
@cookingdish · Post #577 · 11.11.2024 г., 15:21
Caramelized Shallots Pumpkin Pasta 🎃🍝 Recipe for 2 servings Ingredients: - 1/2 Hokkaido pumpkin 🎃 - 250 g pasta 🍝 - 250 g shallots 🧅 - Vegan butter for frying 🧈 - 25 ml maple syrup 🍁 - 100 g vegan cream cheese 🌱 - 300 ml vegetable stock 🥕🍲 - Pinch of salt and pepper 🧂 Toppings - Parsley, chopped 🌿 Preparation: 1. Dice the pumpkin and blanch for 10 minutes 🍲 2. Cook the pasta 🍝 3. Fry the shallots in butter, add maple syrup for a caramelized touch 🍁🧅 4. Deglaze with vegetable stock, add the pumpkin, stir, and simmer briefly 🎃🍲 5. Stir in the cream cheese, then mix in the pasta 🌱🍝 6. Top with fresh parsley and enjoy! 🌿✨ #VeganPasta#PumpkinSeason#CaramelizedShallots#ComfortFood#FallRecipes#PlantBased#EasyMeals#Yummy#PastaNight @dishes
@the_intelligent_investors · Post #1194 · 14.02.2024 г., 04:23
💎hadyo com | JBEZOS029 🎉#reels#top#reelsinstagram#trends#best#fyp#trendingreels#reelsinsta#usa#newyorknewyork#repost#regrann#youtube#yoga#yummy#newyork#foryou#cryptocurrency#crypto