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
Одна из важнейших тем в моей жизни — изучение творчества и превращение его в искусство.
Одним из самых выразительных типов современного искусства я считаю музыкальные клипы. Их много в моем канале. Клипы — синтез музыки, ритма, стиля и визуального ряда, уместного или дикого, красивого или уродливого, раскрывающего и дополняющего музыку.
Вот свежий клип Дейва Мейерса — он известный режиссер, 20 лет делает клипы для западных суперзвезд.
В клипе Gorilla меня особенно впечатляет, как он подает рэп-культуру (уличную, со своими фишками, рифмует ее с костюмами, чисто изобразительными элементами, а как круто они едут по серпантину парковки). Кроме того, есть модная версия видео, его можно посмотреть на сайте, где с помощью нейросети Microsoft AI изображение каждый раз меняется.
#vishot#futureisnow
AI is not the future… it’s the present!🔥
With ChatGPT Bot you can:
✅ Ask anything in seconds
✅ Get smarter answers every time
✅ Boost your workflow instantly
🔥20,000 tokens FREE every day — no limits, no excuses.
Your personal AI assistant is already waiting for you 💎
➖➖➖➖🔻
🧠 BOT: @Chatgpt_OfficialBOT
💎@Chatgpt_OfficialNews
#️⃣#AI#ChatGPT#NeuralHubAI#FutureIsNow
➖➖➖➖🔺
Завтра в 13:00 в филиале Hotel Branch учебного центра ADC состоится грандиозный ивент Speaking Club на тему "Technology"! 🚀
🔌 Ваш гид в мир технологий — учитель Shukhrat, который поделится самыми горячими новинками и трендами. Не пропустите эту уникальную возможность прокачать свои навыки общения и узнать больше о будущем! 🌟
#ADCTechClub#SpeakingClub#FutureIsNow#УчимсяВместе
Если у вас есть какие-либо вопросы, не стесняйтесь обращаться к нам по телефонам:
📞 +998742261078 | +998742281121
или пишите в Telegram: @admofadc
Telegram|Instagram
🤖 OpenAI’s NextGenAI is Here to Supercharge Research & Education!
Big news, folks! OpenAI just launched NextGenAI, a game-changing consortium with 15 top-notch institutions like Harvard, MIT, and Oxford! They’re tossing in $50 million (yes, MILLION!) plus API access to turbocharge AI research and education.
🧠 What’s the vibe? Scientists hunting cures, students mastering AI, and scholars digging up epic insights – all with OpenAI’s tech in their toolbox!
💡 Picture this: Harvard speeding up rare disease diagnoses, Oxford digitizing ancient texts, and more. It’s like giving the world’s brainiest minds an AI-powered jetpack!
Stay tuned – this is just the start of something huge!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#NextGenAI#AIResearch#EducationRevolution#OpenAI#FutureIsNow
➖➖➖➖🔺
☀️ Windows that generate electricity!
Scientists from The Hong Kong Polytechnic University (PolyU) have developed a new generation of transparent solar panels with a record efficiency of 6.05% — the highest ever achieved for semi-transparent photovoltaic cells.
💡 Unlike conventional solar panels, these elements remain transparent or slightly tinted, making them ideal for use as windows, facades, or even screens — without sacrificing natural light or architectural design.
🔋 The new panels are made from triple-junction materials, which provide:
• improved thermal insulation,
• high stability and durability,
• eco-friendliness and low production cost.
🏙️ In the future, such “solar windows” could become part of energy-generating buildings capable of powering themselves, reducing strain on urban power grids, and lowering carbon footprints.
#technology#science#solarenergy#PolyU#innovation#futureisnow
🚀 ICT WEEK UZBEKISTAN 2026
The future isn’t coming.
It’s being built — right here, right now.
This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond.
🌍 Discover breakthrough technologies
🤝 Meet decision-makers and global partners
💡 Turn bold ideas into real projects
📈 Unlock new markets and opportunities
This is not just an event.
Whether you are a government leader, investor, entrepreneur, tech professional, or innovator —
ICT Week Uzbekistan is where you need to be.
✨ Why attend?
✔️ High-level networking with global tech leaders
✔️ Startup & innovation showcases
✔️ Strategic forums and policy dialogues
✔️ Investment and partnership opportunities
✔️ Access to the fast-growing Central Asian tech market
📍 Tashkent, Uzbekistan
📅 September 22–25, 2026
Be part of the conversations that will define your tomorrow.
Join ICT Week Uzbekistan 2026.
Let’s connect. Let’s collaborate. Let’s build the future — together.
#ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan
🚀 ICT WEEK UZBEKISTAN 2026
The future isn’t coming.
It’s being built — right here, right now.
This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond.
🌍 Discover breakthrough technologies
🤝 Meet decision-makers and global partners
💡 Turn bold ideas into real projects
📈 Unlock new markets and opportunities
This is not just an event.
Whether you are a government leader, investor, entrepreneur, tech professional, or innovator —
ICT Week Uzbekistan is where you need to be.
✨ Why attend?
✔️ High-level networking with global tech leaders
✔️ Startup & innovation showcases
✔️ Strategic forums and policy dialogues
✔️ Investment and partnership opportunities
✔️ Access to the fast-growing Central Asian tech market
📍 Tashkent, Uzbekistan
📅 September 22–25, 2026
Be part of the conversations that will define your tomorrow.
Join ICT Week Uzbekistan 2026.
Let’s connect. Let’s collaborate. Let’s build the future — together.
#ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan
🎬ПРЕМЬЕРА ГОДА: КОНЕЦ ЭПОХИ ИНСТРУКЦИЙ
Мир изменился. Искусственный интеллект больше не фантастика, это наш конкурент. Или наш инструмент?
9 января команда Mezon Inspiring School уходит в Deep Work на Ретрите.
Мы закрываем двери, чтобы открыть новую реальность. Реальность, где:
❌ Учитель больше не дает готовых ответов. ❌ Ученик больше не ждет инструкций.
❌ Родитель больше не делает домашку.
НАША ЦЕЛЬ — КОГНИТИВНЫЙ СУВЕРЕНИТЕТ. Мы проектируем школу, где выращивают не «удобных детей», а Субъектов — авторов своей жизни. Тех, кто сможет сказать ИИ: «Я здесь главный».
4 Команды.
3 Сессии.
1 Фундаментальный сдвиг.
Ты готов к Будущему?
#MezonSchool#Education2026#FutureSkills#AIvsHuman#Agency#Subjectivity#TashkentEducation#Blockbuster#MezonRetreat#Subjectivity#AI_Education#FutureIsNow
#Новаяшкола#NewSchool