@QuietWorld · Post #7006 · 30.11.2019 г., 10:15
“The wisdom of life consists in the elimination of non-essentials.” 🍃 Lin Yu Tang #wisdom#life#simplicity @quietworld🍃
Hashtags
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
Пребарај: #simplicity
@QuietWorld · Post #7006 · 30.11.2019 г., 10:15
“The wisdom of life consists in the elimination of non-essentials.” 🍃 Lin Yu Tang #wisdom#life#simplicity @quietworld🍃
Hashtags
@QuietWorld · Post #7238 · 29.03.2020 г., 08:12
In a world that is so busy and craves a lot of attention, I'm just here to remind myself of something that I agree with; “simplicity is the essence of happiness”. A Simple Yet Rewarding Life Life is simple. The wisdom of life consists in the elimination of non-essentials. Fewer possessions = more time to spend enjoying life; because we are not worrying about how to pay for our possessions. Sure it is exciting to buy & bring home lots of stuffs like the latest electronic gadget but after a while, the excitement wears off anyway 🤷🏻♀ & here's a reminder in case we forgot; our self-worth is not measured by the material thing we possess. In fact, possessions often end up weighing us down – with them, come responsibility, guilt and stress. For example; your expensive car eats large chunk of your salary from the monthly instalments, insurance, services and road tax as well as the gas and repairment fees (if any)! You must hold on to your job to maintain your car as if you are a slave to it. “The things that we own, end up owning us.” The feeling of guilt comes when you feel that you have overpaid for something or should not have bought it in the first place. For example; tread mill or any other exercise machine 🙍🏻♀ Needless to say, stress will come from paying high price for it & worrying about losing them; either by them being broken or stolen. What more is needed to say? Simpler life = doing much with less. 😊 #simplicity#life#minimalism#minimalist#happiness @quietworld🍃
@lunaeverly · Post #73 · 05.02.2026 г., 08:28
A mini picnic in the park. 🧺 Just being here and now is the best plan for the day. Мини-пикник в парке. 🧺 Просто быть здесь и сейчас — лучший план на день. #LunaEverly#Picnic#DayMindset#Park#Simplicity