Мы используем 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
.
Google's Pixel / GCam is a great, easy to use, feature rich camera app that competes well with the excellent open source Open Camera. GCam brings things like portrait mode, and easy to use slow-motion.
Because of this, there are many developers porting the app to work on as many phones as possible. GCam can increase the performance of your phone's hardware camera, and the ports can also bring the GCam app to DeGoogled phones.
GCam Hub is a website dedicated to tracking all the GCam ports.
Here is the 👉🏻web page listing many Stable GCam Version:
You can work you way through the list until you find one that works on your phone, but then you may try 100 versions and never get one that works.
Keep in mind, these ports will not auto update.
Note: Shamim's SGCAM version 8.5.300 V5 works on Pixel 3a running Lineage.
If you find a version that works on your phone, let everyone know in the comments.
⚡️@LinuxTechIndex
#GCam#camera
#Gcam#App#Official
BSG public version changelog (8.9.097 from 2023/11/11):
▪️Download
▪️Changelog
▪️Config
Follow@xiaomi_12tpro_updates
Join@xiaomi_12tpro_chat
LM.CCD config adapted for OnePlus 13
⬇️ Download Gcam App (pick aweme variant)
What's Working :
Main, Telephoto, Selfie, UW, Night Sight, Portrait, Videography (4k 60fps + Stabilization)
Changelogs :
• Based on LM.CCD_v3_Sabre config by LaoMa
• Upscaling is enabled by default for Selfie Camera
• Removed extra profiles (which i felt useless)
• Miscellaneous small tweaks done by me.
XML (.agc) Save Directory: /Download/AGC 9.2/configs
All credit goes to the original creator of the config.
#gcam#xml#agc
👤 Adapted by: @pulkittg
🔔 Updates: @OnePlus13Series
💬 Discussion: @OnePlus13SeriesChatRoom
Volcarona - AGC Config | Nothing Phone 2 (Pong)
✍️ Details:
- Supports AGC 8.4 & 9.2
- Config can be downloaded from AGC Toolkit or Telegram
⬇️ GCAM: 8.4 | 9.2
⬇️ Toolkit Link for the Config : ToolKit
📮 Original Post: Here
📝 Changelogs:
* Initial Release for pong
⚙️ Installation
8.4
1. Copy the config inside Download/AGC.8.4/configs (create folder if it doesn't exist)
2. Open GCam then swipe down to open the top menu
3. Click on "Load Configs" > select the config > load
9.2
1. Copy the config inside Download/AGC.9.2/configs (create folder if it doesn't exist)
2. Open GCam then click on the profile icon on the app right
3. Click on "Load Configs" > select the config > load
⚠️ Notes
- Use lite configs if the profiles list does not load all the profiles in regular version
👨💻 Adapted by: @Abdulhubbali
🌐 Discussion: @NothingPhone2Photography
🔖 Tags: #agc#gcam#config