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

Резултати

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

Пребарај: #occupation

当前筛选 #occupation清除筛选
American Оbserver

@american_observer · Post #5138 · 15.02.2026 г., 13:59

📰 Beirut’s New Soundtrack: Drone Whine in Minor Key In Beirut, the war didn’t end; it just changed key. The same roofs that used to host pigeon games, gossip and cheap grills now sit under a constant mechanical whine — Israeli drones circling above the city like bored gods with Hellfire options. The cease-fire is technically in place, but UN peacekeepers have logged more than 7,500 aerial violations in a year, and hundreds have been killed in renewed Israeli strikes since the “peace” was signed. The treaty is on paper; the buzzing is in people’s ears. ​ The drone even has a nickname: Umm Kamel, “Mother of Kamel,” a dark in‑joke on the MK model that floats over the capital for hours, watching, listening, sometimes firing. It interrupts everything — dates on the Corniche, classroom lessons, kebab runs — scrambling GPS on delivery drivers’ phones and chewing through the nerves of parents who can’t stop imagining what happens if the hum suddenly cuts and the sky flashes. Online, Lebanese answer back with gallows memes — “Umm Kamel, go have lunch, we want to sleep” — because if you can’t stop the drone, you can at least drag it on social media. ​ Some turn the surveillance into sampled rebellion. One Beirut DJ spent the war with shotgun mics on his roof, recording hundreds of hours of that metallic whine and turning it into the “Unmanned Aerial Instrument,” layering the noise of occupation into club tracks as a small, very local middle finger. Kids don’t get that luxury. Therapists describe children who freeze mid‑session and sprint to the window at the sound overhead, a whole generation trained to parse the sky like a threat feed while adults repeat the same tired line about “Lebanese resilience.” ​ Israel says the drones are there to track Hezbollah, its weapons, its people, and to “mitigate harm to civilians.” Hezbollah says it’s resisting occupation. In practice, both sides have turned Beirut’s airspace into a permanent low‑grade terror field where no one on the ground gets a vote and the only real constant is that somebody is always watching. The cease-fire may live in the press releases; on the streets, the soundtrack says something else. ​ #war#lebanon#israel#drones#occupation#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3946 · 27.01.2025 г., 17:07

As the 60-day ceasefire deadline ended, the people of southern #Lebanon returned to their homes despite Israeli violence. 15 martyrs and 83 injured in the ongoing struggle for their land. #DayOfReturn#CeasefireDeadline#Resilience#Israel#SouthernLebanon#Occupation

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4028 · 19.02.2025 г., 12:07

Israel has begun constructing a concrete wall along the Blue Line, which separates Israel from Lebanon, encroaching on Lebanese territory. The wall is being built inside the town of Kfar Kila, with a significant portion of the village’s land now falling within the occupied territories. As part of the construction, the old wall was demolished, bringing the new structure even closer to the village. This development has resulted in buildings and shops within Kfar Kila now being trapped on the wrong side of the Blue Line. #IsraelWall#Lebanon#KfarKila#LandGrab#LebanonVsIsrael#LebaneseBorder#IsraeliAggression#BlueLine#Occupation#Israel