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

Резултати

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

Пребарај: #museveni

当前筛选 #museveni清除筛选
Addis Standard

@addisstandardeng · Post #21066 · 14.01.2026 г., 06:53

#Uganda cuts internet days before presidential election Ugandan authorities have imposed a nationwide internet blackout days before presidential elections in which President Yoweri #Museveni is expected to prolong his 40-year rule. A government regulatory body instructed mobile network operators to block public internet access starting at 6pm (15:00 GMT) on Tuesday. Internet monitor NetBlocks later confirmed a “nation-scale disruption to internet connectivity”. The network outage has heightened concerns about repression in the run-up to the January 15 vote, in which 81-year-old Museveni, Africa’s third-longest-serving leader, is being challenged by pop star-turned-politician Bobi Wine. Musevni’s re-election ‘all but locked down’ Ugandan security personnel have rounded up hundreds of opposition supporters in advance of the vote and repeatedly fired live bullets and tear gas at pro-Wine campaign rallies. ... https://www.aljazeera.com/news/2026/1/13/uganda-cuts-internet-days-before-presidential-election

Addis Standard

@addisstandardeng · Post #21301 · 04.02.2026 г., 08:15

News: Museveni set to appoint former #Ethiopian Airlines CEO Girma Wake as #Uganda Airlines head President #Museveni has removed Uganda Airlines chief executive Jenifer Bamuturaki, signalling a major leadership overhaul at the national carrier as government looks to stabilise and reposition the airline. Uganda Airlines Chief Executive Jenifer Bamuturaki has stepped down from her role under pressure with President Museveni said to be considering appointing a former Ethiopian Airlines chief executive to lead the national carrier, according to sources familiar with the decision. The Nile Post understands Mr Museveni, who last month ordered investigations into mismanagement of the airline, has decided to shake up its management entirely. The move signals a broad leadership reset at Uganda Airlines, with the President said to be keen on installing a new management team capable of steering... https://web.facebook.com/AddisstandardEng/posts/pfbid04kpbTqG1Y34uvkVoD2gCAK9E478QwWXSRkfArwvwmbEjqhotYpvJ8aXdE6PysHHhl

Addis Standard

@addisstandardeng · Post #21509 · 24.02.2026 г., 08:36

#Ugandan president's son compares #Sudan's RSF to Hitler following meeting with his father The son of Ugandan President Yoweri #Museveni and chief of the country’s armed forces has launched an extraordinary attack on the leader of Sudan’s Rapid Support Forces (#RSF) paramilitary, who recently met with his father in Uganda. “Hemedti is a criminal,” Muhoozi Kainerugaba tweeted on Sunday night, referring to RSF chief Mohamed Hamdan Dagalo. “He has the blood of thousands of black people on his hands. “RSF feels like heroes for killing innocent black people. Very good. I bet Hitler felt like a hero too for gassing Jews in Auschwitz,” he posted. Kainerugaba, who is the head of the Uganda People’s Defence Force and is widely expected to take over from his father as president when Museveni dies, wrote that the “RSF will have to fight the whole of Black Africa before they win in Sudan. ..... https://web.facebook.com/AddisstandardEng/posts/pfbid02CrYWkQ78rMDoKeasxhJARe4EjVwtuFNnnHc8vXM7wFtBDQPnjSUWmJzMHbD1vTVPl

Marx21.it

@marx21news · Post #9636 · 26.01.2026 г., 07:45

Le elezioni in Uganda: Museveni vince ancora, tra repressione interna e una politica estera che gli fa da "assicurazione" Le elezioni in Uganda del 15 gennaio hanno riconfermato Yoweri Museveni per un settimo mandato, prolungando un potere ininterrotto dal 1986. Un risultato scontato? Forse, ma che nasconde dinamiche molto complesse. Un voto sotto pressione Il leader dell'opposizione Bobi Wine ha denunciato brogli e intimidazioni, in un clima segnato da arresti, violenze e un blackout di internet durante la votazione. La "stabilità" promessa da Museveni ha un prezzo altissimo: la progressiva chiusura di ogni spazio democratico. La politica estera come scudo Ma come fa Museveni a resistere da così tanto tempo? Un fattore cruciale è la sua politica estera, che trasforma l'Uganda in un partner indispensabile per l'Occidente e per la regione: ✅ Leader nelle missioni di pace in Somalia contro al-Shabaab. ✅ Attivo nella stabilizzazione del Sud Sudan. ✅ Impegnato nella lotta contro gruppi armati nella Repubblica Democratica del Congo(Operazione Shujaa). Questo ruolo gli garantisce credito internazionale, finanziamenti e, soprattutto, una certa "tolleranza" verso le derive autoritarie interne. Per molti partner, l'Uganda è più utile come gendarme regionale che come democrazia modello. Doppio binario: Occidente e Cina Kampala gioca abilmente su più tavoli: è un alleato militare per Stati Uniti ed Europa, ma al tempo stesso si affida alla Cina per grandi progetti infrastrutturali e energetici, come la diga di Karuma e l'oleodotto per il petrolio del Lago Alberto. ⏳ Che futuro per l'Uganda? Museveni governerà fino al 2031, avvicinandosi a mezzo secolo di potere. La grande incognita è la successione, con il figlio Muhoozi Kainerugaba già in prima linea nelle forze armate: si prepara una dinastia familiare? L'Uganda resta un paese giovane e potenzialmente esplosivo, dove la politica è diventata un rito di conferma, mentre la società cerca canali, spesso conflittuali, per esprimere la sua domanda di futuro. Cosa ne pensate? Può la comunità internazionale continuare a chiudere un occhio sulle violazioni dei diritti in cambio di stabilità regionale? #Uganda#Museveni#BobiWine#Africa#PoliticaEstera#Democrazia#Geopolitica https://www.marx21.it/internazionale/uganda-la-settima-vittoria-di-museveni-e-luso-della-politica-estera-come-assicurazione/

Addis Standard

@addisstandardeng · Post #21493 · 23.02.2026 г., 05:22

#Sudan slams #Uganda for hosting paramilitary chief Sudan's army-aligned government on Sunday criticised #Kampala for hosting rival paramilitary chief Mohamed Hamdan Daglo, slamming his reception by Uganda's president as an "affront to humanity". #Hemeti on Friday met with Ugandan President Yoweri #Museveni at #Entebbe's State House, a day after a United Nations probe found his forces had committed acts of genocide in #Darfur. Sudan's foreign ministry on Sunday criticised the meeting, saying the #RSF's atrocities had been "documented by the international community and condemned by regional organisations of which Uganda is a member", including the African Union & the Intergovernmental Authority on Development (#IGAD). Daglo, speaking during his visit, said he travelled to Uganda after President Museveni was approached by the Sudanese army seeking his mediation. His visit came a week ... https://web.facebook.com/AddisstandardEng/posts/pfbid0RVfv7fGAkLcW1TgpDMTNhYyCwS2wG1KVnGgVMpCy7DS1XtYtuU8nnEyrcYCRtLaal