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

Резултати

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

Пребарај: #securitybreach

当前筛选 #securitybreach清除筛选
Crypto M - Crypto News

@CryptoM · Post #65409 · 13.04.2026 г., 05:36

🚀 Polkadot Bridge Exploit Mints 1 Billion DOT Amid Geopolitical Concerns A recent midday cryptocurrency digest reported a significant security breach involving the Polkadot network. According to NS3.AI, the exploit resulted in the unauthorized minting of 1 billion DOT tokens, raising concerns about the network's security protocols. In addition to the Polkadot incident, the digest highlighted geopolitical tensions, specifically the potential implications of a U.S. blockade of the Strait of Hormuz. Such an action could escalate risks in the region, affecting global markets and investor sentiment. #Polkadot#Cryptocurrency#Blockchain#SecurityBreach#DOT#Geopolitics#InvestorSentiment#GlobalMarkets

Crypto M - Crypto News

@CryptoM · Post #65108 · 11.04.2026 г., 01:53

🚀 OpenAI Confirms Security Breach Did Not Affect Passwords or API Keys OpenAI has confirmed that a recent third-party security incident did not compromise passwords or OpenAI API keys. According to Jin10, the company assured users that their sensitive information remains secure despite the breach. OpenAI continues to monitor the situation closely to ensure the protection of its users' data. #OpenAI#SecurityBreach#Passwords#APIKeys#DataProtection#UserSecurity

Crypto M - Crypto News

@CryptoM · Post #65185 · 11.04.2026 г., 17:11

🚀 Solana's Drift Protocol Suffers $285 Million Loss in Security Breach Drift Protocol experienced a significant security breach on April 1, 2026, resulting in a loss of $285 million. According to NS3.AI, attackers managed to drain Solana's largest perpetual futures exchange within approximately 12 minutes. The exploit was facilitated by a governance setup that utilized a two-of-five multisig and a zero-delay path for privileged actions. The attackers spent six months cultivating trust with insiders, leading to two Security Council members pre-signing transactions with hidden authorizations. In response to the breach, the Solana Foundation launched STRIDE, a foundation-backed continuous security program, just days after the incident. #Solana#DriftProtocol#SecurityBreach#285MillionLoss#PerpetualFutures#NS3AI#MultisigExploit#GovernanceSetup#STRIDE#SolanaFoundation#CryptoSecurity#InsiderAttack#BlockchainSecurity#SOL

Crypto M - Crypto News

@CryptoM · Post #64536 · 09.04.2026 г., 06:43

🚀 Odin Fun Addresses Security Breach with Multiple Measures Odin Fun co-founder Bob Bodily announced that several initiatives are underway to address the recent security breach. According to Foresight News, the platform is being restored to its pre-attack state, and efforts are being made to retrieve large cryptocurrency withdrawals made after the incident. The company is collaborating with law enforcement and exchanges to track and freeze the attackers' funds and is preparing for legal action. Coordination is also ongoing with other Bitcoin protocols affected by third-party smart contract vulnerabilities. The vulnerability has been identified, fixed, verified, and redeployed. A comprehensive third-party smart contract audit is in progress. Odin Fun is maintaining continuous communication with the main community to reach the best solution and is discussing with users the optimal path for platform relaunch. Previously, on April 1, Odin Fun experienced an unusual large-scale sell-off, primarily involving a few meme coins like BURRITO and CRYPTOBURG. Subsequently, multiple users reported abnormal account balances and unauthorized withdrawals of BTC and tokens. #OdinFun#SecurityBreach#Cryptocurrency#SmartContracts#LawEnforcement#Bitcoin#CryptoSecurity#ForesightNews#PlatformRestoration#LegalAction#CommunityCommunication#ThirdPartyAudit#BTC#UnauthorizedWithdrawals#MemeCoins#BURRITO#CRYPTOBURG