TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем 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

Hashtags

Резултати

Пронајдени 260 слични објави

Пребарај: #iraq

当前筛选 #iraq清除筛选

伊拉克的藥材鋪 (地點: Karbala) Karbala 是巴格達以南一百公里的一個什葉派聖城。 基本上,全世界有草本植物的地方,也有自己一套的經驗醫學和本草綱目。伊拉克的「米索不達美亞」是暫時考古之中, 承認的最早出現系統及文字的人類文明, 那時他們已經懂得「做手術」。 #Iraq

Hashtags

POPULAR FRONT

@popularxfront · Post #6196 · 08.05.2026 г., 16:27

🇮🇶#Iraq: Hajaj Ahmed Hardan al-Tikriti, widely known among survivors as "Saddam Hussein’s personal butcher" was brought before the Rusafa Criminal Court in Baghdad over crimes linked to the Anfal genocide against the Kurds. A former warden at the notorious Nugra Salman prison in Iraq’s southern Muthanna province, he is accused of overseeing torture and carrying out executions, forced disappearances, starvation, and the abuse of thousands of Kurdish detainees during the late 1980s. Since his arrest on July of last year, after decades in hiding, al-Tikriti has appeared multiple times before the Rusafa Court in connection with atrocities committed at Nugra Salman prison. Around 221 relatives of Anfal victims from several Kurdish regions attended the court session wearing traditional Kurdish clothing, demanding justice for the massacres and crimes committed against the Kurdish population. Attached footage shows Hajaj in handcuffs next to the Nugra Salman Prison. (via Rudaw & @kurdishactivism_ on IG)

Hashtags

POPULAR FRONT

@popularxfront · Post #6080 · 29.04.2026 г., 06:56

🇮🇶#Iraq: The “Guardians of Blood Brigades” have struck a communication tower at the US Victoria Base in Baghdad using a fiber-optic drone armed with an RPG warhead. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #6002 · 24.04.2026 г., 01:17

🇮🇶#Iraq: The Kurdistan National Army headquarters in Chamshari was struck by a drone last night. So far, no information has been released regarding who launched the attack. (via @KurdishFrontNews)

Hashtags

POPULAR FRONT

@popularxfront · Post #5989 · 22.04.2026 г., 21:10

🇮🇶#Iraq: Footage showing drone interceptions over Erbil in Iraqi Kurdistan after an alleged massive drone attack.

Hashtags

POPULAR FRONT

@popularxfront · Post #5850 · 10.04.2026 г., 09:18

🇮🇶#Iraq: Footage shows US forces attempting to shoot down drones over Erbil Governorate in Iraq's Kurdistan overnight. Several reports state that the drones belong to Iran-backed militias, with one of the most active groups in Iraq lately being the Guardians of Blood Brigades. (via Archer83Able on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #5817 · 08.04.2026 г., 07:59

🇮🇶#Iraq: The "Islamic Resistance in Iraq" has carried out several attacks against US bases in Iraq, as well as in the Kurdistan Region, overnight. The militants used cruise missiles and kamikaze drones in the attacks. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #5728 · 02.04.2026 г., 23:30

🇮🇶#Iraq: Footage released by the Islamic Resistance in Iraq (IRI) shows a drone strike targeting a fuel tank at the US Victory Camp base near Baghdad Airport. (via @conflictarchive)

Hashtags

123•••10•••202122
ПретходнаСтраница 1 од 22Следна