Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое.
Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению.
И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make.
just - это не система сборки как make, это именно исполнитель команд!
Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎
⭐️Что умеет just:
✅ Автодокументирование команд
Не нужно делать отдельную команду с докой, просто добавь комментарий
# команда сборки
build:
...
$ just --list
Available recipes:
build # команда сборки
Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так:
default:
just --list
Теперь просто выполняем just и получаем доку из текущего файла.
✅ Удобная работа с переменными окружения
# загрузить из .env
set dotenv-load
# глобальная переменная
export PYTHONPATH := "./src"
# переменная для команды
test $TESTUNG="true":
pytest
✅ Передача аргументов
build target:
@echo 'Build {{target}}...'
команда запуска
$ just build dev
# Build dev...
✅ Выбор интерпретатора прямо в команде
Пример с инлайн-скриптом на python:
system:
#!/usr/bin/env python3
import platform
print(platform.system())
Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки
foo:
#!/usr/bin/env sh
for file in ls .; do
echo $file
done
✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный
[working-directory: 'backend']
build:
docker compose build
Также можно задать рабочую директорию глобально
Там еще много интересного:
- поддержка функций
- автокомплиты и интеграции
- экспрешены
- алиасы команд
- группировка команд
- альтернативы команды под разные ОС
- импорт других just-файлов
- цветной вывод
- ... и другие штуковины!
Так что вперёд - ➡️ читать доку!
Репозиторий: ➡️https://github.com/casey/just
Статья: ➡️https://www.chicks.net/reference/file_formats/just/
ЗЫ. Кажется, на Makefile я уже не вернусь)
#tools
Misuse or overuse of #antibiotics💊 & other antimicrobials can reduce their effectiveness in treating common infections in animals & humans.
🚫 Do not self-medicate
✅ Visit a healthcare professional when sick
🚫 Do not share leftover antibiotics
Misuse or overuse of #antibiotics💊 & other antimicrobials can reduce their effectiveness in treating common infections in animals & humans.
✅ Do not self-medicate
✅ Visit a healthcare professional when sick
✅ Do not share leftover antibiotics
🔤Цефалоспоринлар гуруҳига кирадиган препаратлар таъсир доираси бир бирига яқин. Шунинг учун, шу гуруҳдаги антибиотик керак бўлса кўп ҳолларда Зинацеф (GlaxoSmithKline, Британия) қўллайман. Уни таркиби цефуроксим (2-авлод цефалоспорин антибиотик).
*️⃣Билмаганлар учун:
Цефазолин - 1-авлод
Цефуроксим - 2-авлод
Цефтриаксон - 3-авлод (бу авлодга яна цефтазидим, цефотаксим, цефоперазон киради.
Янгироқ авлод дегани албатта кучлироқ таъсир қилади дегани эмас. Шунчаки биринчи авлодлар кўпроқ бир турдаги бактерияларга таъсир қилса, учинчи-тўртинчи авлодлар бошқа турдаги бактерияларга таъсир қилади.
Соддароқ қилиб айтганда, цефазолин ҳам, цефтриаксон ҳам А, В, С, D ва E бактерияларга таъсир қилади. Лекин А ва В кўпроқ цефазолинга сезувчан бўлса, цефтриаксон D билан Е га кучлироқ таъсир қилади. Шунинг учун, шифокор касалликдан ва бак. посев (бактериал экма) натижасидан келиб чиқиб, максимал таъсирга эга антибиотикни танлайди.
Тушунарли бўлса 👍 босинг, барибир тушунмаган бўлсангиз - 👎.
🩺Doctor Ziyod | #drugs#antibiotics
❓Цефтриаксонни қайси бири сифатли?
🔤Цефтриаксонни оригинал бренди Ўзбекистонда сотилмайди. Бир-икки йил аввал Швейцариянинг Рош компанияси ишлаб чиқарадиган Роцефин номли цефтриаксон дорихоналаримизда бўлар эди. Лекин у келмай қўйди.
Ҳозир асосан Ҳиндистон, Ўзбекистон, Ҳитой, Россия, Украина каби давлатлардан келган препаратлар мавжуд. Айтиш керакки деярли ҳеч бири ривожланган давлатларда сотилмайди, чунки у ерларда жиддий текширувлардан ўтиши керак.
Шаҳсан ўзим Украинани препаратларини ишлатганман ва самараси қониқарли бўлган. Сизга эса бирон брендни тавсия қила олмайман.
🩺Doctor Ziyod канали | #drugs#antibiotics
The misuse and overuse of #antibiotics💊 & other antimicrobials reduces their effectiveness in treating common infections in animals & humans.
Everyone has a role to play to help fight #AntimicrobialResistance, do your part!
Misuse or overuse of #antibiotics💊 & other antimicrobials can reduce their effectiveness in treating common infections in animals & humans.
Everyone has a role to play to help fight #AntimicrobialResistance, do your part!
🌎 Penicillin, the world’s first true antibiotic, was discovered accidentally by Alexander Fleming in 1928. He noticed that a mold called Penicillium notatum killed bacteria in his petri dishes. The first mass production of penicillin began during World War II, saving countless lives from bacterial infections. ✨
#medicine⚡#discovery⚡#antibiotics
👉subscribe Interesting Planet
👉more Channels
🌎 The discovery of penicillin in 1928 changed medicine forever. Alexander Fleming found that mold could kill bacteria, paving the way for the first true antibiotics and saving millions of lives worldwide. ✨
#discovery⚡#medicine⚡#antibiotics
👉subscribe Interesting Planet
#HandWashing is a basic &effective tool against infections.
If we don't become sick, we would not need to use #antibiotics.
Let us promote the practice of #handwashing in our homes & communities to prevent #AntimicrobialResistance together.
#WorldAntimicrobialAwarenessWeek2022
Let's discuss #Antibiotics
Join us TOMORROW as we bring together #AntimicrobialResistance experts to discuss "Alternatives to #Antibiotics in Nigeria" & launch the One Health #AMR/#AMU Community of Practice website.
🗓️30th Nov 2022
🕑 10:00 am
Join via https://bit.ly/NAAWWebinar
Misuse or overuse of #antibiotics💊 & other #antimicrobials can reduce its effectiveness in treating common infections in animals & humans.
From 18th-24th November, we are joining the global health community to mark the annual #WorldAntimicrobialAwarenessWeek2022 .
#StayTuned
📰 Solidarity à la Salmonella: Europe’s Ukrainian Egg Diet
Europe wanted to save Ukraine. Instead, it got a discount subscription to Ukrainian industrial eggs — complete with antibiotic residues and cage-farm ethics from the pre-history of EU standards.
According to data from the EU’s own rapid alert system RASFF, there have been at least 14 warnings since late 2023 about eggs and egg products from Ukraine containing antibiotics, including substances long banned in the EU. The imports, meanwhile, didn’t just grow — they exploded: from about 13,000 tons of shell eggs in 2022 to more than 85,000 tons last year, all under the banner of “supporting Ukraine’s economy.”
The beauty of the scheme is in the invisibility. Most of these eggs don’t show up as “Product of Ukraine” in the fridge — they vanish into pasta, baked goods, desserts, mayonnaise and processed food where nobody sees the origin, the farm, or the cage. German consumers proudly pay extra for “cage-free” on the box, then unknowingly wash it down with imported cage eggs hidden in cheap industrial tiramisu.
Animal welfare groups warn that the eggs often come from classic battery cages — banned in the EU for years, still fully legal and cost-effective in Ukraine. Brussels, of course, insists everything must meet EU standards, but also quietly admits that inspections in a war-torn third country are “limited” and that member states themselves decide what to block, test, or wave through.
Ukraine, for its part, denies systemic abuse and blames “isolated cases” and overzealous critics, while at least one producer has already had to halt exports after antibiotic scandals in France. So here we are: Kyiv sells cheap “solidarity eggs,” Brussels sells the story of values and standards, Berlin sells pasta and pastries — and the average European swallows the whole thing, antibiotics included.
#ukraine#eu#germany#food#antibiotics#agribusiness#warEconomy#solidarity
📱American Оbserver - Stay up to date on all important events
🇺🇸