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 слични објави

Пребарај: #petition

当前筛选 #petition清除筛选
Nothing Phone (2) | Updates

@NothingPhone2Updates · Post #475 · 22.11.2024 г., 06:31

Google's Play Integrity policy is making it harder to use custom ROMs. If you can't access banking apps or payments, it's time to take action! 🔑 What is a Keybox? When using a custom ROM, some apps won’t work due to security checks (Strong Integrity). A keybox acts as a fake certificate to trick apps into thinking your phone is unmodified, allowing apps like banking apps to work. Modules like TrickyStore can be used along with keyboxes to bypass these restrictions. However, keyboxes are being abused in certain ways: - Shared publicly or checked via bots, leading to revocations. - Scammers sell fake or leaked keyboxes. - Genuine users who need keyboxes for essential apps are losing access. ❗️Precautions: - Don't use keyboxes for flexing unless your important work apps really need it. Stick with Device Integrity, it makes no difference. - Avoid sharing them publicly or checking them via keybox checker bots in telegram. These get forwarded to the hosters in some cases! - Stop checking for Integrity via multiple apps / playstore repeatedly. You should not bother until your apps stop working. - Use alternative apps when possible. Please do remember that any keybox made public or being used in bulk would trigger the failsafe and Goolag would eventually ban it! 🚨✍️Sign the Petition✍️🚨: https://www.change.org/p/stop-google-from-limiting-custom-roms @alph4 is working to take legal action against Google through Antitrust and consumer protection agencies in the European Union over the issue of Google Play Integrity! "We ask Google to change its Play Integrity implementation, allowing Custom ROMs to pass Play Integrity so the users can enjoy their device's capabilities fully" ✅ To-Do List: • Sign and verify your signature via email auth. • Share how experience regarding how Play Integrity affects your custom ROM experience with respect to apps. • Spread the word to friends and other groups. Forwarding this post can also help. Thanks for your attention and support! A community post made on behalf of @Nothing_Archive & @Crosscrew Federation #Keybox#PlayIntegrity#Petition#StrongIntegrity#CustomROM#AndroidFreedom#DigitalRights

香港人的蘋果

@Appledailyhk26 · Post #55739 · 11.10.2023 г., 20:19

🔥🔥告急!10月15日就截止啦!尚餘不足一星期! https://petitions.ourcommons.ca/en/Petition/Details?Petition=e-4534 Source: @vssdm_@vanactivistshk 抗擊中共滲透,捍衛加拿大民主及主權!💪🏻 再一次呼籲大家簽署 #海外代理人登記法案 請簽名支持聯邦政府通過外國代理人法案 遏止極權政府滲透和干預加拿大主權! * 尚欠1400簽名才能達標! * 未簽的盡快上網簽名!已簽的,請1拖10積極找親友、網友簽名! 合資格簽名人士:只要你在加拿大居住 * 學生 * 工簽 * 難民 * 等候移民 * 永久居民 * 在加拿大擁有住址的海外公民 #Canada#Petition#聯署#SayNoToCCP#BoycottChina#中共滲透#共諜

港島西。Channel

@islandwest84 · Post #39893 · 05.03.2023 г., 13:54

聯署要求取消邀請,支持打壓人權演員甄子丹,擔任奧斯卡金像獎頒獎嘉賓 Cancel inviting Donnie Yen who supports human rights abuses as a presenter for the Oscars. 請簽署支持及轉發 https://chng.it/YFPf7mVwdT Donnie Yen is a supporter of the Chinese Communist regime and has made several remarks in support of the Chinese government's policies, including supporting the implementation of the National Security Law in Hong Kong and accusing Hong Kong protesters of being rioters. These remarks not only violate the spirit of freedom of speech but also deny the rights of the people of Hong Kong to fight for their freedom and democracy. We demand that the Oscars Committee reconsider this decision and cancel the invitation of Donnie Yen as a presenter for the Oscars. Let us work together to uphold human rights and moral values, and make the Oscars a truly respectful award. #OscarAwards#聯署#petition#甄子丹#媚共偽人#殺神4#反送中運動#反修例#沒有暴徒只有暴政

Hong Kong Democracy Movement

@hkdmovement · Post #7433 · 28.05.2024 г., 12:24

請大家支持全球聯署! 召集30萬人關注香港政治犯,呼籲所有民主政府向中國香港政府施壓,停止以法律侵害民主自由。 Call 300,000 people to pay attention to Hong Kong political prisoners, call on all democratic governments to put pressure on the Hong Kong government of China, and stop using the law to infringe on democratic freedoms. #聯署#Petition 聯署連結: https://chng.it/fbHngk2gs4 Facebook 活動頁 fb.com/events/1636456453850005 #政治犯#47人案#民主派初選#國安法#未審先判#欲加之罪#冤獄#莫須有#初選無罪#釋放政治犯