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

Резултати

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

Пребарај: #espionage

当前筛选 #espionage清除筛选
America 🇺🇸 News & Politics

@America · Post #10641 · 12.05.2026 г., 13:05

🕵️🇺🇸CALIFORNIA MAYOR ADMITS BEING CHINESE SPY IN SHOCKING PLEA DEAL 🔹 Arcadia Mayor Eileen Wang, 58, pleads guilty to acting as illegal foreign agent 2020-2022 ⚖️🚨 🔹 Ran fake "U.S. News Center" website spreading Beijing propaganda with ex-fiancé "Mike" Sun 📰🇨🇳 🔹 Posted pre-written Chinese government essays denying Xinjiang genocide allegations 📄❌ 🔹 Reported back to PRC handlers with screenshots showing propaganda reach statistics 📊📱 🔹 Faces 10 years prison while Sun already sentenced to 4 years for espionage 🏛️⛓️ "Thank you leader" - her actual messages to Chinese spymasters exposed! 💬😱 How many more sleeper agents hold American offices?! 🇺🇸🔍 #USNews#espionage @america

movies & series 🍿

@images · Post #1716 · 15.11.2024 г., 18:10

🍿 Cameron Diaz breaks her retirement and returns to action with Jamie Foxx in 'Back in Action'! 📆Release Date: January 17, 2024 🎭Genre: #Action · #Comedy · #Espionage 🎬 I can't contain my excitement: Cameron Diaz returns to the big screen after 11 years alongside Jamie Foxx in 'Back in Action'. In this adrenaline-fueled espionage comedy, they play a pair of former CIA agents who must get back in the game when their cover is blown. 🔥💥 The most interesting thing is seeing Diaz and Foxx together again after 'Any Given Sunday' and 'Annie'. Plus, the cast is impressive: Glenn Close from 'Fatal Attraction', Kyle Chandler from 'Super 8', and Andrew Scott from 'Sherlock'. Directed by Seth Gordon, the genius behind 'Horrible Bosses'. This is a comeback you won't want to miss! 🎉🎥

movies & series 🍿

@images · Post #1814 · 07.04.2025 г., 17:40

🍿 The Phoenician Scheme: Benicio del Toro, a Nun, and Six Plane Crashes ✈️😵‍💫 📆Release: May 30, 2025 🎭Genre: #DarkComedy · #Espionage · #Action 🍿Follow movie Wes Anderson (The Grand Budapest Hotel,Asteroid City) is back at his most eccentric: Benicio del Toro leads this visual satire as a bruised and armed tycoon who hands over his empire to his daughter, a knife-wielding nun played by Mia Threapleton (yep, Kate Winslet’s daughter). The cast is wild: Tom Hanks, Bryan Cranston, Richard Ayoade, Scarlett Johansson, Cumberbatch, and even Michael Cera in peak “Wes mode.” Shot in Germany with a score by Alexandre Desplat, the film oozes Anderson’s signature nostalgic absurdity, but with a sharp rhythm that echoes his best work. Sure, the aesthetic is familiar, but when Wes nails it, it’s not formula, it’s pure style. And this one smells like a full-blown comeback. 🎨💣

Reuters: World

@reutersworldchannel · Post #149224 · 11.10.2021 г., 16:54

U.S. Navy engineer, wife charged with selling submarine secrets A U.S. Navy nuclear engineer and his wife were charged with selling secret information about nuclear submarines to an undercover FBI agent who posed as an operative for a foreign country, according to the Justice Department. #US#Navy#Espionage#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

Hong Kong Democracy Movement

@hkdmovement · Post #7400 · 21.05.2024 г., 18:23

【Breaking】#MatthewTrickett, involved in the #HongKongEconomicandTradeOffice espionage case, found dead. UK police confirmed that Trickett, granted bail and due to appear in court on Friday, was discovered deceased in a park in Maidenhead, UK, on Sunday (19th). Preliminary investigations label the cause of death as "unknown." #Espionage#UKPolice

Casus Belli History

@casusbellihistory · Post #15160 · 14.02.2026 г., 10:31

Jeffrey Epstein nebol zakladateľom siete. Bol dedičom. Skrytou pravdou je, že táto vydieračská sieť nevznikla v 90. rokoch. Bolo to „spravodajské dedičstvo “ odovzdávaná z otca na dcéru. Ghislaineiným otcom bol Robert Maxwell, mediálny magnát a legendárny superšpión Mossadu. Operácia začala s ním: zbieraním „kompromitujúcich materiálov“ na politikov pre Izrael. Keď zomrel a bol pochovaný v Jeruzaleme so štátnym pohrebom, na ktorom sa zúčastnili šéfovia spravodajských služieb, jeho dcéra prevzala „rodinný podnik“ s Epsteinom. Nebolo to len obchodovanie s ľuďmi. Je to desaťročia trvajúca vydieračská operácia sponzorovaná štátom. #EpsteinFiles#RobertMaxwell#GhislaineMaxwell#Mossad#Espionage#History @casusbellihistory