Posts tagged CLI
Make and entr for code validation during editing
- 2021-12-30
For a while now, I’ve been wondering how to combine entr
(which automatically runs commands on file changes)
with the way I setup project validation (both for CI/CD and for local developer usage) with Makefiles.
The best thing I got so far is the validate_continously
target in
my Makefile.
Simple encrypted Linux folders with TAR and GPG
- 2021-12-27
What’s the simplest way of encrypting a folder in Linux?
Combining tar
with gpg
, it seems.
Enforcing Python imports’ order with isort, Makefiles, and Vim
- 2021-12-27
I finally integrated isort into my toolbox.
I think that the job of changing code files belongs to the editor (or an IDE),
so I made Vim run isort
automatically,
while the import order enforcement in a project is done via Makefile
(which can be run the same way by developers and the CI/CD pipeline).
Some shell functions for working with Python virtualenvs
- 2021-03-31
Finally doing some scripting today. I noticed that there are some python-virtualenv-related commands I run often (in my tmux-based “IDE”), so I automated them away to shave off some keystrokes.
Say it with style in CLI
- 2020-04-26
So I glued some awesome software together into a shell one-liner and now I can make my announcements with a rainbow tortoise on the CLI :)
Universal app reload with entr
- 2020-02-18
A useful feature many web frameworks have is auto-reload. Your app is running in the background, you change the code, and the app is restarted with those changes, so you can try them out immediately. What if you wanted that behavior for everything that you’re writing? And without any coding to implement it over and over in every little project?