#rust#git#git_hooks#pre_commit
prek is a faster, dependency-free alternative to pre-commit, built in Rust. You download a single binary with no runtime requirements, and it automatically manages Python versions and virtual environments for you. It runs multiple times faster than pre-commit while using half the disk space, shares toolchains between hooks, and supports parallel execution. prek is fully compatible with existing pre-commit configurations, includes built-in support for monorepos, and offers improved commands like running hooks on specific directories or last commits. Major projects like CPython, Apache Airflow, and FastAPI already use it, making it a reliable choice for streamlining your code quality checks.
https://github.com/j178/prek
👩💻 Linux: перенаправление.
• Если вы уже освоились с основами терминала, возможно, вы уже готовы к тому, чтобы комбинировать изученные команды. Иногда выполнения команд оболочки по одной вполне достаточно для решения определенной задачи, но в некоторых случаях вводить команду за командой слишком утомительно и нерационально. В подобной ситуации нам пригодятся некоторые особые символы, вроде угловых скобок.
• Для оболочки, интерпретатора команд #Linux, эти дополнительные символы — не пустая трата места на экране. Они — мощные команды, которые могут связывать различные фрагменты информации, разделять то, что было до этого цельным, и делать ещё много всего. Одна из самых простых, и, в то же время, мощных и широко используемых возможностей оболочки — это перенаправление стандартных потоков ввода/вывода. В этой статье вы узнаете:
- Три стандартных потока ввода/вывода;
- Перенаправление стандартного потока вывода;
- Перенаправление стандартного потока ввода;
- Перенаправление стандартного потока ошибок.
➡️https://selectel.ru/blog/tutorials/linux-redirection/
• В качестве дополнения, к посту подгрузил полезную шпаргалку, которая поможет освоить данную тему.
#Cron#Linux#Unix#CheatSheet
https://help.ubuntu.com/community/CronHowto
#Cron is a system daemon used to #execute desired #tasks (in the background) at designated times.
A crontab file is a simple text file containing a list of commands meant to be run at specified times. It is edited using the crontab command. The commands in the crontab file (and their run times) are checked by the cron daemon, which executes them in the system background.
https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps
One of the most standard ways to run tasks in the #background on Linux machines is with #cron jobs. They’re useful for #scheduling_tasks on the VPS and automating different maintenance-related jobs. “Cron” itself is a daemon (or program) that runs in the background. The schedule for the different jobs that are run is in a configuration file called “crontab.”
@reboot echo "System #start_up "