@ncdcgov · Post #4574 · 02.12.2025 г., 19:45
Stay safe this festive season 🎄✨ #Lassa fever is real — keep your food tightly covered and protected NCDCNigeria #LassaFever#HealthyLiving
Hashtags
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
Пребарај: #lassa
@ncdcgov · Post #4574 · 02.12.2025 г., 19:45
Stay safe this festive season 🎄✨ #Lassa fever is real — keep your food tightly covered and protected NCDCNigeria #LassaFever#HealthyLiving
Hashtags
@ncdcgov · Post #4537 · 18.09.2025 г., 14:16
#Lassa Fever is highly infectious but preventable! ✨Keep your meals safe — store food properly, maintain good hygiene, and protect your loved ones. Hygiene is your first line of defense! 🛡️ Stay Informed, Stay Safe! #LassaFever#StaySafe#NCDCNigeria
@ncdcgov · Post #4522 · 04.09.2025 г., 17:41
#Lassa fever is a viral infection spread mainly through contact with food or household items contaminated by urine or droppings of infected rats.🐀 To prevent this spread; ✅ Store food in tightly covered containers to keep rodents away. ✅ Dispose of garbage properly and keep your surroundings clean. ✅ Avoid bush burning that drives rats into homes. ✅ Practice good hand hygiene—wash your hands regularly with soap and water. ✅ Seek medical attention immediately if you develop fever, weakness, or bleeding. Stay informed, Stay healthy! #StaySafe#HealthyLiving#NCDCNigeria
@ncdcgov · Post #4575 · 04.12.2025 г., 07:28
A clean home is your first defence against #Lassa fever. ☑️Store food properly and dispose of waste the right way. Don’t give rats a chance to thrive. Together, we can stay protected. #LassaFever#StayHealthy#NCDCNigeria
@ncdcgov · Post #4606 · 20.02.2026 г., 10:03
#Lassa fever is preventable, awareness is your first line of defense. ✅Avoid contact with rodents and their droppings ✅Store food properly ✅Maintain good hygiene by washing your hands regularly and keeping your surroundings clean and rodents free Seek medical care early if you notice symptoms such as : ✔️Fever ✔️Weakness ✔️Severe headache ✔️Cough ✔️Sore throat Stay informed, Stay Safe!! Prevent. Detect early. Save lives. #LassaFeverAwareness#PublicHealth#NCDCNigeria
@ncdcgov · Post #4571 · 10.11.2025 г., 12:17
#Lassa fever is a serious viral illness spread through contact with infected rodents or contaminated food and household items. ✔️Protect your health and community by reducing rodent exposure and practicing good hygiene always. Stay alert, stay informed, stay safe! #LassaFever#HealthAwareness#StaySafe#NCDCNigeria
@ncdcgov · Post #4597 · 11.02.2026 г., 15:55
#Lassa fever is not caused by witchcraft or spiritual attacks. It is a viral disease transmitted through contact with urine or droppings of an infected rat, contaminated food, or the body fluids of an infected person. Knowing the facts helps us act early and save lives. If you or anyone around you has a persistent fever, visit the nearest health facility immediately. #LassaFever#KnowTheFacts#PublicHealth#NCDCNigeria